Allow index sorting by field length [LUCENE-8069]
Open
legacy-jira-priority:Minor
type:enhancement
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
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.
---
Migrated from [LUCENE-8069](https://issues.apache.org/jira/browse/LUCENE-8069) by Adrien Grand (@jpountz), updated Apr 27 2021
Contributor guide
Research direction
The issue names no files, tests, or entry points. Begin by mapping Lucene's index-sorting and similarity or term-query collection paths, then define and test what field-length sorting and any early-termination behavior should mean.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100