On 9/26/06, Chris Hostetter <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to