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

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.6
    • 8.3
    • spatial
    • 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
          2 kB
          Amrit Sarkar
        2. SOLR-11601.patch
          3 kB
          Amrit Sarkar
        3. SOLR-11601.patch
          3 kB
          Amrit Sarkar

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: