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

A better spatial query parser

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 4.9, 6.0
    • spatial
    • None

    Description

      I've been thinking about how spatial support is exposed to Solr users.

      Presently there's the older Solr 3 stuff, most prominently seen via {!geofilt} and {!bbox} done by gsingers (I think). and then there's the Solr 4 fields using a special syntax parsed by Lucene 4 spatial that looks like mygeofield:"Intersects(Circle(1 2 d=3))" What's inside the outer parenthesis is parsed by Spatial4j as a shape, and it has a special (non-standard) syntax for points, rects, and circles, and then there's WKT. I believe this scheme was devised by ryantxu.

      I'd like to devise something that is both comprehensive and is aligned with standards to the extent that it's prudent. The old Solr 3 stuff is not comprehensive and not standardized. The newer stuff is comprehensive but only a little based on standards. And I think it'd be nicer to implement it as a Solr query parser. I'll say more in the comments.

      Attachments

        1. SOLR-4242.patch
          74 kB
          Ishan Chattopadhyaya
        2. SOLR-4242.patch
          53 kB
          Ishan Chattopadhyaya
        3. SOLR-4242.patch
          35 kB
          Ishan Chattopadhyaya

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dsmiley David Smiley
              Votes:
              3 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated: