You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Mayya Sharipova (Jira)" <ji...@apache.org> on 2020/05/26 19:18:00 UTC

[jira] [Created] (LUCENE-9384) Backport for the field sort optimization of LUCENE-9280

Mayya Sharipova created LUCENE-9384:
---------------------------------------

             Summary: 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


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: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org