You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "David Smiley (Jira)" <ji...@apache.org> on 2021/01/21 19:36:00 UTC

[jira] [Created] (LUCENE-9689) Remove PrefixTreeStrategy.makeDistanceValueSource support

David Smiley created LUCENE-9689:
------------------------------------

             Summary: Remove PrefixTreeStrategy.makeDistanceValueSource support
                 Key: LUCENE-9689
                 URL: https://issues.apache.org/jira/browse/LUCENE-9689
             Project: Lucene - Core
          Issue Type: Task
          Components: modules/spatial-extras
            Reporter: David Smiley


PrefixTreeStrategy.makeDistanceValueSource reads all the full length terms and puts them into memory.  And it does this rather crudely; it's not efficient, unlike much other Lucene code.  Furthermore, it can be mis-used when non-point data is put into the RPT, leading to undefined results.  We could add "isPointsOnly" to make it safe, but I think support for this ought to be removed; instead users can use LatLonDocValuesField.newDistanceSort for geospatial data (surface of earth), or PointVectorStrategy for general 2D.  



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