[
https://issues.apache.org/jira/browse/LUCENE-8069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16881476#comment-16881476
]
David Smiley commented on LUCENE-8069:
--------------------------------------
Also; is luceneutil assuming the search query doesn't want the number of total
hits, and could then use impacts? Yet this is not now most people use Lucene...
Would a contribution here (not yet present) be something that allowed you to
sort on the norm _of a particular field_? Hmm. I guess people wanting these
benefits today without any changes to Lucene could simply add a norm-like field
(e.g. sum of raw char lengths of all tokenized fields) and then configure
Lucene to sort on that. Would that work?
> 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: [email protected]
For additional commands, e-mail: [email protected]