Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7892

LatLonDocValuesField methods should be clearly marked as slow

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0, master (8.0)
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      It is very trappy that LatLonDocValuesField has stuff like newBoxQuery/newDistanceQuery.

      Users bring this up on the user list and are confused as to why the resulting queries are slow.

      Here, we hurt the typical use case, to try to slightly speed up an esoteric one (sparse stuff). Its a terrible tradeoff for the API.

      If we truly must have such slow methods in the public API, then they should have slow in their name.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: