lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <>
Subject [jira] [Commented] (SOLR-6797) Add score=degrees|kilometers|miles for AbstractSpatialFieldType
Date Wed, 31 Dec 2014 03:46:15 GMT


David Smiley commented on SOLR-6797:

RE test maxDistErr and/or distErr... you might trivially just see if strategy.getDistErrPct
and/or SpatialPrefixTree.getMaxLevels() yields what you expect given some particular input.

> Add score=degrees|kilometers|miles for AbstractSpatialFieldType
> ---------------------------------------------------------------
>                 Key: SOLR-6797
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: spatial
>            Reporter: David Smiley
>         Attachments: SOLR-6797.patch, SOLR-6797.patch, SOLR-6797.patch, SOLR-6797.patch,
> Annoyingly, the units="degrees" attribute is required for fields extending AbstractSpatialFieldType
(e.g. RPT, BBox).  And it doesn't really have any effect.  I propose the following:
> * Simply drop the attribute; ignore it if someone sets it to "degrees" (for back-compat).
> * When using score="distance", or score=area or area2D (as seen in BBoxField) then use
kilometers if geo=true, otherwise degrees.
> * Add support for score=degrees|kilometers|miles|degrees

This message was sent by Atlassian JIRA

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

View raw message