Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6797

Add score=degrees|kilometers|miles for AbstractSpatialFieldType

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0, 6.0
    • spatial
    • None

    Description

      Annoyingly, the units="degrees" attribute is required for fields extending AbstractSpatialFieldType (e.g. RPT, BBox). And it doesn't really have any effect. I propose the following:

      • Simply drop the attribute; ignore it if someone sets it to "degrees" (for back-compat).
      • When using score="distance", or score=area or area2D (as seen in BBoxField) then use kilometers if geo=true, otherwise degrees.
      • Add support for score=degrees|kilometers|miles|degrees

      Attachments

        1. SOLR-6797.patch
          4 kB
          Ishan Chattopadhyaya
        2. SOLR-6797.patch
          8 kB
          Ishan Chattopadhyaya
        3. SOLR-6797.patch
          22 kB
          Ishan Chattopadhyaya
        4. SOLR-6797.patch
          22 kB
          Ishan Chattopadhyaya
        5. SOLR-6797.patch
          36 kB
          Ishan Chattopadhyaya
        6. SOLR-6797.patch
          58 kB
          David Smiley
        7. SOLR-6797.patch
          62 kB
          David Smiley

        Activity

          People

            dsmiley David Smiley
            dsmiley David Smiley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: