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

Atri Sharma commented on LUCENE-7697:
-------------------------------------

Couple of ideas:

 

1) For sorted DocValues and a query seeking an exact value of the sort key, do 
a binary search per segment instead of loading every document and checking.

 

2) If the sort order of an index and sort order of a key match, terminate early.

 

Any other thoughts/ideas?

> IndexSearcher should leverage index sorting
> -------------------------------------------
>
>                 Key: LUCENE-7697
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7697
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Priority: Minor
>
> We made good efforts in order to make index sorting fast and easy to 
> configure. We should now look into making IndexSearcher aware of it. This 
> will probably require changes of the API as not collecting all matches means 
> that we can no longer know things like the total number of hits or the 
> maximum score.
> I don't plan to work on it anytime soon, I'm just opening this issue to raise 
> awareness. I'd be happy to do reviews however if someone decides to tackle it.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to