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

Adrien Grand commented on LUCENE-8069:
--------------------------------------

I didn't measure the indexing rate, I can do that next. Yes, I hacked a way to 
sort by norm field indeed. The solution that you proposed would likely yield 
similar benefits.

bq. is luceneutil assuming the search query doesn't want the number of total 
hits

Yes, like in nightly benchmarks.

bq. Yet this is not now most people use Lucene...

There are many use-cases for Lucene, but getting top full-text hits by score is 
a pretty common one and it typically doesn't require computing hit counts?

> Allow index sorting by field length
> -----------------------------------
>
>                 Key: LUCENE-8069
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8069
>             Project: Lucene - Core
>          Issue Type: Wish
>            Reporter: Adrien Grand
>            Priority: Minor
>
> Short documents are more likely to get higher scores, so sorting an index by 
> field length would mean we would be likely to collect best matches first. 
> Depending on the similarity implementation, this might even allow to early 
> terminate collection of top documents on term queries.



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

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

Reply via email to