lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <m...@apache.org>
Subject Re: Huge Query execution time for multiple ORs
Date Tue, 28 Nov 2017 10:12:16 GMT
Long queries hurt Solr on many layers. You can experiment with
https://lucene.apache.org/solr/guide/7_1/other-parsers.html#terms-query-parser


On Tue, Nov 28, 2017 at 1:07 PM, Faraz Fallahi <faraz.fallahi@googlemail.com
> wrote:

> Hi
>
> I have a question regarding solr queries.
> My query basically contains thousand of OR conditions for authors
> (author:name1 OR author:name2 OR author:name3 OR author:name4 ...)
> The execution time on my index is huge (around 15 sec). When i tag all the
> associated documents with a custom field and value like authorlist:1 and
> then i change my query to just search for authorlist:1 it executes in 78
> ms. How come there is such a big difference in exec-time?
> Can somebody please explain why there is sucha difference (maybe the query
> parser?) and if there is a way to speed this up?
>
> Thx for the help
>



-- 
Sincerely yours
Mikhail Khludnev

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message