lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <>
Subject [jira] [Updated] (SOLR-10039) LatLonPointSpatialField
Date Wed, 25 Jan 2017 21:47:26 GMT


David Smiley updated SOLR-10039:
    Attachment: SOLR_10039_LatLonPointSpatialField.patch

The attached patch has most everything but it's not quite committable.  I'm internally using
a 6.4 based branch so the diff includes stuff that won't be needed for trunk or 6.5+.

The field extends {{AbstractSpatialFieldType}} and thus inherits the functionality and integration
with the rest of Solr spatial.  The main TODOs are:
* make indexed & docValues attributes configurable
* integrate Polygon support.

I would have liked to have introduced this embedded {{SpatialStrategy}} implementation to
Lucene spatial-extras but I didn't think depending on sandbox was a good idea, at least not
now, so I opted not to.

> LatLonPointSpatialField
> -----------------------
>                 Key: SOLR-10039
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: spatial
>            Reporter: David Smiley
>            Assignee: David Smiley
>         Attachments: SOLR_10039_LatLonPointSpatialField.patch
> The fastest and most efficient spatial field for point data in Lucene/Solr is {{LatLonPoint}}
in Lucene's sandbox module.  I'll include {{LatLonDocValuesField}} with this even though it's
a separate class.  LatLonPoint is based on the Points API, using a BKD index.  It's multi-valued
capable.  LatLonDocValuesField is based on sorted numeric DocValues, and thus is also multi-valued
capable (a big deal as the existing Solr ones either aren't or do poorly at it).  Note that
this feature is limited to a latitude/longitude spherical world model.  And furthermore the
precision is at about a centimeter -- less precise than the other spatial fields but nonetheless
plenty good for most applications.  Last but not least, this capability natively supports
polygons, albeit those that don't wrap the dateline or a pole.
> I propose a {{LatLonPointSpatialField}} which uses this.  Patch & details forthcoming...

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message