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 Yonik Seeley <yo...@apache.org> on 2006/12/11 23:03:07 UTC

try setting useFilterForSortedQuery to false

People may want to consider changing the useFilterForSortedQuery
option from true to false (or commenting it out) in solrconfig.xml
I believe it should result in a speedup for the average query that
sorts on something other than score.

Generating and using filters for base queries used to be a win due to:
1) a set of complex queries that were almost never sorted by score,
but the sort changed
2) bugs/slowness in Lucene when dealing with multi-segment indicies

The deficiencies in Lucene have been corrected, and the introduction
of fq filter parameters that are cached separately go a long way
toward mitigating #1.   The downside to this optimization is extra
work when the same base query isn't resorted often, and pollution of
the filterCache. I've changed the default to false for the example
solrconfig.xml

-Yonik