[
https://issues.apache.org/jira/browse/LUCENE-9384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mayya Sharipova resolved LUCENE-9384.
-------------------------------------
Fix Version/s: 8.7
Resolution: Fixed
> Backport for the field sort optimization of LUCENE-9280
> -------------------------------------------------------
>
> Key: LUCENE-9384
> URL: https://issues.apache.org/jira/browse/LUCENE-9384
> Project: Lucene - Core
> Issue Type: Task
> Affects Versions: 8.x
> Reporter: Mayya Sharipova
> Priority: Minor
> Fix For: 8.7
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> Field sort optimization implemented in LUCENE-9280 is based on an assumption
> that if a numeric field is indexed with both doc values and points, the *same
> data* is stored in these points and doc values. While there is a plan in
> LUCENE-9334 to enforce this consistency from Lucene 9.0, there is nothing in
> Lucene 8.x to enforce this assumption.
>
> Thus in order to backport the sort optimization to 8.x, we need to make a
> user to explicitly opt in for it. This could be done by either:
> * introducing a special SortField (e.g. DocValuesPointSortField) that will
> use optimization
> * introduce a bool parameter to a SortField which when true will indicate
> that the sort optimization should be enabled (e.g. SortField("my_field",
> SortField.Type.LONG, true))
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]