Uploaded image for project: 'Spring Data for Apache Solr'
  1. Spring Data for Apache Solr
  2. DATASOLR-122

Ability to return distance with the returned solr documents

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0 GA
    • Fix Version/s: 1.1 RC1 (Codd)
    • Component/s: Core
    • Labels:

      Description

      In Solr we can pass a latitude and Longitude and if every solr document has a latitude and longitude , we can return the distance back.

      e.g: fl=*,distance:geodist()&pt=34.13,-80.9&sfield=latlng

      Currently there is an option to set the fields for the fl - addProjectionFields. But if i use that, there is no way to pass the pt and so solr returns errors.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cstrobl Christoph Strobl
                Reporter:
                divyaa Divya A
                Last updater:
                Thomas Darimont
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: