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

GeoPointDistanceQuery using wrapped lon for dateline crossing query

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.4, 6.0
    • None
    • None
    • 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
          8 kB
          Nick Knize
        2. LUCENE-6905.patch
          6 kB
          Nick Knize
        3. LUCENE-6905.patch
          7 kB
          Nick Knize
        4. LUCENE-6905.patch
          7 kB
          Nick Knize
        5. LUCENE-6905.patch
          5 kB
          Nick Knize

        Activity

          People

            Unassigned Unassigned
            nknize Nick Knize
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: