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

geodist fails for some fields when field is in parenthesis instead of sfield param

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.6
    • Fix Version/s: 8.3
    • Component/s: spatial
    • Labels:
      None

      Description

      Im switching my schemas from derprecated solr.LatLonType to solr.LatLonPointSpatialField.

      Now my sortquery (which used to work with solr.LatLonType):

      sort=geodist(b4_location__geo_si,47.36667,8.55) asc

      raises the error

      "sort param could not be parsed as a query, and is not a field that exists in the index: geodist(b4_location__geo_si,47.36667,8.55)"

      Invoking sort using syntax

      sfield=b4_location__geo_si&pt=47.36667,8.55&sort=geodist() asc

      works as expected though...

        Attachments

        1. SOLR-11601.patch
          3 kB
          Amrit Sarkar
        2. SOLR-11601.patch
          3 kB
          Amrit Sarkar
        3. SOLR-11601.patch
          2 kB
          Amrit Sarkar

          Activity

            People

            • Assignee:
              dsmiley David Smiley
              Reporter:
              clemensdev Clemens Wyss
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: