Actually I was thinking in terms of Lucene for this question :)

In Solr we have index sorting available via SortingMergePolicyFactory which
can be leveraged via param segmentTerminateEarly=true

In Lucene, we moved to making index sort a first-class citizen. It records
the index sort order on the segment and automatically leverages it at query
time and terminates early as long as accurate hit counts is not needed

However, I was curious if Lucene is able to take advantage of index sort
for filters. If an index is sorted by categories and at query time if I
filter by a category can that information be leveraged ?

On Wed, Mar 4, 2020 at 8:08 PM David Smiley <david.w.smi...@gmail.com>
wrote:

> I suspect you might ask in the context of Solr?  AFAIK I don't think Solr
> takes advantage of any index sorting that might exist.  Maybe Christine
> knows; she added the configuration of index sorting to Solr --
> https://issues.apache.org/jira/browse/SOLR-13681
>
> ~ David Smiley
> Apache Lucene/Solr Search Developer
> http://www.linkedin.com/in/davidwsmiley
>
>
> On Wed, Mar 4, 2020 at 6:56 PM Varun Thacker <va...@vthacker.in> wrote:
>
>> If I have an index sorted by category and at search time filter on one
>> category
>>
>> Do we currently take advantage of index sort for this sort of a filter
>> query?
>>
>>

Reply via email to