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

Mayya Sharipova commented on LUCENE-9280:
-----------------------------------------

[~jpountz]  Thanks Adrien for the explanation about index sorting. It makes 
sense

I was just wondering about this sentence of yours: " it's common to sort data 
by descending timestamp, e.g. to live-tail events that match a filter, but you 
sometimes also need to sort in ascending order".  I guess this PR is not going 
to help for this case either, as segments and docs within them are processed in 
order they are written (in desc order), and we will not reach bottom values 
until the very end. But I was wondering if as a follow-up work to address this 
case, we can imitate the work of [~jim.ferenczi] that during a query pre-sorts 
segments based on a query sort field, and process segments in that sort order.

> Add ability to skip non-competitive documents on field sort 
> ------------------------------------------------------------
>
>                 Key: LUCENE-9280
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9280
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Mayya Sharipova
>            Priority: Minor
>          Time Spent: 7h 10m
>  Remaining Estimate: 0h
>
> Today collectors, once they collect enough docs, can instruct scorers to 
> update their iterators to skip non-competitive documents. This is applicable 
> only for a case when we need top docs by _score.
> It would be nice to also have an ability to skip non-competitive docs when we 
> need top docs sorted by other fields different from _score. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to