lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: Re[3]: how to enhance speed of sorted search
Date Sat, 30 Sep 2006 01:20:08 GMT
On 9/26/06, Chris Hostetter <hossman_lucene@fucit.org> wrote:
> you might be able to shave a little bit of speed off by accessing the bits
> from the Filter directly and iterating over them yourself to check the
> FieldCache ad build up your sorted list of the first "N"

This is one optimization that Solr does.  From solrconfig.xml:

  <!-- An optimization that attempts to use a filter to satisfy a search.
         If the requested sort does not include score, then the filterCache
         will be checked for a filter matching the query. If found, the filter
         will be used as the source of document ids, and then the sort will be
         applied to that.  -->
    <useFilterForSortedQuery>true</useFilterForSortedQuery>


-Yonik
http://incubator.apache.org/solr Solr, the open-source Lucene search server

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message