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

Implement Spatial Filter

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.1, 4.0-ALPHA
    • None
    • None

    Description

      Given an index with spatial information (either as a geohash, SpatialTileField (see SOLR-1586) or just two lat/lon pairs), we should be able to pass in a filter query that takes in the field name, lat, lon and distance and produces an appropriate Filter (i.e. one that is aware of the underlying field type for use by Solr.

      The interface could look like:

      &fq={!sfilt dist=20}location:49.32,-79.0
      

      or it could be:

      &fq={!sfilt lat=49.32 lat=-79.0 f=location dist=20}
      

      or:

      &fq={!sfilt p=49.32,-79.0 f=location dist=20}
      

      or:

      &fq={!sfilt lat=49.32,-79.0 fl=lat,lon dist=20}
      

      Attachments

        1. SOLR-1568.patch
          20 kB
          Grant Ingersoll
        2. SOLR-1568.patch
          52 kB
          Grant Ingersoll
        3. SOLR-1568.patch
          59 kB
          Grant Ingersoll
        4. SOLR-1568.patch
          68 kB
          Grant Ingersoll
        5. SOLR-1568.patch
          75 kB
          Grant Ingersoll
        6. SOLR-1568.patch
          75 kB
          Grant Ingersoll
        7. SOLR-1568.patch
          76 kB
          Grant Ingersoll
        8. SOLR-1568.patch
          80 kB
          Grant Ingersoll
        9. SOLR-1568.patch
          76 kB
          Grant Ingersoll
        10. SOLR-1568.patch
          112 kB
          Grant Ingersoll
        11. SOLR-1568.patch
          112 kB
          Grant Ingersoll
        12. SOLR-1568.patch
          112 kB
          Grant Ingersoll
        13. SOLR-1568.patch
          2 kB
          Yonik Seeley
        14. SOLR-1568.patch
          26 kB
          Yonik Seeley
        15. SOLR-1568.patch
          32 kB
          Yonik Seeley
        16. SOLR-1568.patch
          33 kB
          Yonik Seeley
        17. SOLR-1568.patch
          11 kB
          Yonik Seeley
        18. SOLR-1568.patch
          27 kB
          Yonik Seeley
        19. SOLR-1568.patch
          32 kB
          Yonik Seeley
        20. SOLR-1568.patch
          2 kB
          Yonik Seeley
        21. SOLR-1568.Mattmann.031010.patch.txt
          79 kB
          Chris A. Mattmann
        22. CartesianTierQParserPlugin.java
          5 kB
          Grant Ingersoll

        Issue Links

          Activity

            People

              gsingers Grant Ingersoll
              gsingers Grant Ingersoll
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: