[ 
https://issues.apache.org/jira/browse/LUCENE-10633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17567485#comment-17567485
 ] 

Adrien Grand commented on LUCENE-10633:
---------------------------------------

Indeed the speedup is impressive. :) I should have noted that I had to tweak 
luceneutil to also index fields that were used for sorting so that the inverted 
index could be used to skip hits.

This change is very similar to LUCENE-9280, which led to annotation DD on 
[https://home.apache.org/~mikemccand/lucenebench/TermDayOfYearSort.html] and 
https://home.apache.org/~mikemccand/lucenebench/TermDTSort.html.

> Dynamic pruning for queries sorted by SORTED(_SET) field
> --------------------------------------------------------
>
>                 Key: LUCENE-10633
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10633
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> LUCENE-9280 introduced the ability to dynamically prune non-competitive hits 
> when sorting by a numeric field, by leveraging the points index to skip 
> documents that do not compare better than the top of the priority queue 
> maintained by the field comparator.
> However queries sorted by a SORTED(_SET) field still look at all hits, which 
> is disappointing. Could we leverage the terms index to skip hits?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to