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

Abstract the distance calculation process in the Spatial contrib

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.1
    • None
    • modules/spatial
    • None
    • New

    Description

      The spatial contrib shouldn't tie users to one particular way of calculating distances. Wikipedia lists multiple different formulas for the great-circle distance calculation, and there are alternatives to that as well. In a situation where many documents have the same points, it would be useful to be able to cache some calculated values as well (currently this is sort of handled in the filtering process itself).

      This issue addresses this by abstracting away the distance calculator, allowing the user to provide the implementation of choice. It would then be possible to swap in different distance calculation strategies without altering the distance filtering process itself.

      Attachments

        1. LUCENE-2151.patch
          11 kB
          Chris Male
        2. LUCENE-2151.patch
          11 kB
          Chris Male

        Issue Links

          Activity

            People

              cmale Chris Male
              cmale Chris Male
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: