Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: None
    • Labels:
      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}
      
      1. SOLR-1568.patch
        2 kB
        Yonik Seeley
      2. SOLR-1568.patch
        32 kB
        Yonik Seeley
      3. SOLR-1568.patch
        27 kB
        Yonik Seeley
      4. SOLR-1568.patch
        11 kB
        Yonik Seeley
      5. SOLR-1568.patch
        33 kB
        Yonik Seeley
      6. SOLR-1568.patch
        32 kB
        Yonik Seeley
      7. SOLR-1568.patch
        26 kB
        Yonik Seeley
      8. SOLR-1568.patch
        2 kB
        Yonik Seeley
      9. SOLR-1568.patch
        112 kB
        Grant Ingersoll
      10. SOLR-1568.patch
        112 kB
        Grant Ingersoll
      11. SOLR-1568.patch
        112 kB
        Grant Ingersoll
      12. SOLR-1568.patch
        76 kB
        Grant Ingersoll
      13. SOLR-1568.patch
        80 kB
        Grant Ingersoll
      14. SOLR-1568.patch
        76 kB
        Grant Ingersoll
      15. SOLR-1568.patch
        75 kB
        Grant Ingersoll
      16. SOLR-1568.patch
        75 kB
        Grant Ingersoll
      17. SOLR-1568.patch
        68 kB
        Grant Ingersoll
      18. SOLR-1568.patch
        59 kB
        Grant Ingersoll
      19. SOLR-1568.Mattmann.031010.patch.txt
        79 kB
        Chris A. Mattmann
      20. SOLR-1568.patch
        52 kB
        Grant Ingersoll
      21. SOLR-1568.patch
        20 kB
        Grant Ingersoll
      22. CartesianTierQParserPlugin.java
        5 kB
        Grant Ingersoll

        Issue Links

          Activity

          Grant Ingersoll created issue -
          Grant Ingersoll made changes -
          Field Original Value New Value
          Link This issue blocks SOLR-773 [ SOLR-773 ]
          Grant Ingersoll made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Grant Ingersoll made changes -
          Link This issue is blocked by SOLR-1131 [ SOLR-1131 ]
          Grant Ingersoll made changes -
          Attachment CartesianTierQParserPlugin.java [ 12425352 ]
          Grant Ingersoll made changes -
          Link This issue relates to LUCENE-2081 [ LUCENE-2081 ]
          Simon Willnauer made changes -
          Link This issue relates to LUCENE-2139 [ LUCENE-2139 ]
          Grant Ingersoll made changes -
          Link This issue is blocked by SOLR-1586 [ SOLR-1586 ]
          Grant Ingersoll made changes -
          Summary Implement Cartesian Tier Filter Implement Spatial Filter
          Description Given an index with cartesian tiers, we should be able to pass in a filter query that takes in the field name, lat, lon and radius and produces an appropriate Filter for use by Solr. Note, contrib/spatial has such a filter, so it may just be that we need to hook in a QParserPlugin to handle it. 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:
          {code}
          &fq={!sfilt dist=20}location:49.32,-79.0
          {code}
          or it could be:
          {code}
          &fq={!sfilt lat=49.32 lat=-79.0 f=location dist=20}
          {code}
          or:
          {code}
          &fq={!sfilt p=49.32,-79.0 f=location dist=20}
          {code}
          or:
          {code}
          &fq={!sfilt lat=49.32,-79.0 fl=lat,lon dist=20}
          {code}
          Grant Ingersoll made changes -
          Attachment SOLR-1568.patch [ 12434809 ]
          Grant Ingersoll made changes -
          Attachment SOLR-1568.patch [ 12437364 ]
          Chris A. Mattmann made changes -
          Attachment SOLR-1568.Mattmann.031010.patch.txt [ 12438476 ]
          Grant Ingersoll made changes -
          Attachment SOLR-1568.patch [ 12439574 ]
          Grant Ingersoll made changes -
          Attachment SOLR-1568.patch [ 12439915 ]
          Grant Ingersoll made changes -
          Attachment SOLR-1568.patch [ 12440613 ]
          Grant Ingersoll made changes -
          Link This issue is blocked by LUCENE-1921 [ LUCENE-1921 ]
          Grant Ingersoll made changes -
          Attachment SOLR-1568.patch [ 12440687 ]
          Grant Ingersoll made changes -
          Link This issue depends upon LUCENE-2367 [ LUCENE-2367 ]
          Grant Ingersoll made changes -
          Attachment SOLR-1568.patch [ 12440783 ]
          Grant Ingersoll made changes -
          Attachment SOLR-1568.patch [ 12443508 ]
          Hoss Man made changes -
          Fix Version/s Next [ 12315093 ]
          Fix Version/s 1.5 [ 12313566 ]
          Grant Ingersoll made changes -
          Attachment SOLR-1568.patch [ 12448052 ]
          Grant Ingersoll made changes -
          Attachment SOLR-1568.patch [ 12448409 ]
          Grant Ingersoll made changes -
          Attachment SOLR-1568.patch [ 12448420 ]
          Grant Ingersoll made changes -
          Attachment SOLR-1568.patch [ 12448429 ]
          Grant Ingersoll made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Fix Version/s 4.0 [ 12314992 ]
          Fix Version/s Next [ 12315093 ]
          Resolution Fixed [ 1 ]
          Grant Ingersoll made changes -
          Fix Version/s 3.1 [ 12314371 ]
          Bill Bell made changes -
          Link This issue is blocked by SOLR-2125 [ SOLR-2125 ]
          Yonik Seeley made changes -
          Attachment SOLR-1568.patch [ 12455404 ]
          Yonik Seeley made changes -
          Attachment SOLR-1568.patch [ 12455465 ]
          Yonik Seeley made changes -
          Attachment SOLR-1568.patch [ 12455529 ]
          Yonik Seeley made changes -
          Attachment SOLR-1568.patch [ 12455544 ]
          Yonik Seeley made changes -
          Attachment SOLR-1568.patch [ 12455800 ]
          Yonik Seeley made changes -
          Attachment SOLR-1568.patch [ 12455832 ]
          Yonik Seeley made changes -
          Attachment SOLR-1568.patch [ 12455869 ]
          Yonik Seeley made changes -
          Attachment SOLR-1568.patch [ 12456058 ]
          Grant Ingersoll made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Gavin made changes -
          Link This issue blocks SOLR-773 [ SOLR-773 ]
          Gavin made changes -
          Link This issue is depended upon by SOLR-773 [ SOLR-773 ]

            People

            • Assignee:
              Grant Ingersoll
              Reporter:
              Grant Ingersoll
            • Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development