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

Spatial: Add S2 lib for more efficient Geo3D indexes

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.2
    • Component/s: documentation, spatial
    • Labels:
      None

      Description

      Here I'm adding a dependency on Google S2 Geometry (121KB) so that we can use prefixTree="s2" on a spatial field type that is using Geo3D. Lucene spatial-extras already has this dependency, albeit it is optional. I enhanced tests to exercise it.
      Additionally, I document here a strictness Geo3D has in which the polygon points must be provided in a particular order or else the interpretation of the shape is inverted. This so-called "right hand rule" order is somewhat standard but some libs (like JTS) don't care.

        Attachments

        1. SOLR-13467.patch
          26 kB
          David Smiley

          Issue Links

            Activity

              People

              • Assignee:
                dsmiley David Smiley
                Reporter:
                dsmiley David Smiley
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: