You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Dotan Cohen <do...@gmail.com> on 2013/06/27 10:08:43 UTC

Filter queries taking a long time, even with cache disabled

On a Solr 4.1 install I see that queries with use the fq parameter
take a long time (upwards of 120 seconds), both on the standard Lucene
query parser and also with edismax. I have added the {!cache=false}
localparam to the filter query, but this does not speed up the query.
Putting all the search terms in the main query returns results in
miliseconds.

Note that I am not using any wildcard queries, in each case I am
specifying the field to search and the terms to search on. Where
should I start to debug?

--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

Re: Filter queries taking a long time, even with cache disabled

Posted by Erick Erickson <er...@gmail.com>.
I'm guessing you're well aware that the example you
gave is parsed as search_field:love default_field:obama.

Which isn't pertinent, there's nothing that
looks like it should take any time at all here, to say
nothing of 120 seconds.

So start with &debug=query and see what the
filter query is parsed as, especially the section
"parsed_filter_queries" in the debug output.

Best
Erick


On Thu, Jun 27, 2013 at 10:01 AM, Dotan Cohen <do...@gmail.com> wrote:

> On Thu, Jun 27, 2013 at 12:14 PM, Upayavira <uv...@odoko.co.uk> wrote:
> > can you give an example?
> >
>
> Thank you. This is an example query:
> select
> ?q=search_field:iraq
> &fq={!cache=false}search_field:love%20obama
> &defType=edismax
>
> --
> Dotan Cohen
>
> http://gibberish.co.il
> http://what-is-what.com
>

Re: Filter queries taking a long time, even with cache disabled

Posted by Dotan Cohen <do...@gmail.com>.
On Thu, Jun 27, 2013 at 12:14 PM, Upayavira <uv...@odoko.co.uk> wrote:
> can you give an example?
>

Thank you. This is an example query:
select
?q=search_field:iraq
&fq={!cache=false}search_field:love%20obama
&defType=edismax

--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

Re: Filter queries taking a long time, even with cache disabled

Posted by Upayavira <uv...@odoko.co.uk>.
can you give an example?

On Thu, Jun 27, 2013, at 09:08 AM, Dotan Cohen wrote:
> On a Solr 4.1 install I see that queries with use the fq parameter
> take a long time (upwards of 120 seconds), both on the standard Lucene
> query parser and also with edismax. I have added the {!cache=false}
> localparam to the filter query, but this does not speed up the query.
> Putting all the search terms in the main query returns results in
> miliseconds.
> 
> Note that I am not using any wildcard queries, in each case I am
> specifying the field to search and the terms to search on. Where
> should I start to debug?
> 
> --
> Dotan Cohen
> 
> http://gibberish.co.il
> http://what-is-what.com