lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Varun Thacker <>
Subject Re: Do we leverage index sort for filters?
Date Thu, 05 Mar 2020 15:09:08 GMT
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 <>

> 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 --
> ~ David Smiley
> Apache Lucene/Solr Search Developer
> On Wed, Mar 4, 2020 at 6:56 PM Varun Thacker <> 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?

View raw message