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

GeoPointDistanceQuery using wrapped lon for dateline crossing query

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      GeoPointDistanceQuery handles dateline crossing by splitting the Minimum Bounding Rectangle (MBR) into east/west ranges and rewriting to a Boolean SHOULD. PostFiltering is accomplished by calculating the distance from the center point to the candidate point field. Unfortunately the center point is wrapped such that calculating the closest point on the "circle" from an eastern point to a western MBR provides incorrect results thus causing false negatives in the range creation. This was caught by a jenkins failure and reproduced in 2 places: GeoPointDistanceTermsEnum and TestGeoRelations

        Attachments

        1. LUCENE-6905.patch
          5 kB
          Nicholas Knize
        2. LUCENE-6905.patch
          7 kB
          Nicholas Knize
        3. LUCENE-6905.patch
          7 kB
          Nicholas Knize
        4. LUCENE-6905.patch
          6 kB
          Nicholas Knize
        5. LUCENE-6905.patch
          8 kB
          Nicholas Knize

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nknize Nicholas Knize
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: