You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2013/08/17 00:13:47 UTC

[jira] [Updated] (SOLR-5170) Spatial multi-value distance sort via DocValues

     [ https://issues.apache.org/jira/browse/SOLR-5170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Smiley updated SOLR-5170:
-------------------------------

    Attachment: SOLR-5170_spatial_multi-value_sort_via_docvalues.patch


*The first patch is not committable*.
* The biggest reason why is there's an awkward hack to work-around the fact that a Solr FieldType can't aggregate multiple values into a single BinaryDocValuesField. So I've got this UpdateRequestProcessor that works in concert with the field.  SOLR-4329
* Secondly it needs more tests. It's been working in quasi-production for many months, though.
* And thirdly, I'd prefer to see this mechanism integrated into the lucene spatial framework somehow.

If you want to know how to use it, look at the tests.  I'm providing this because I got permission to open-source it and people want this capability.  Once SOLR-4329 is addressed then I'll work on this code more to make it commit-worthy.
                
> Spatial multi-value distance sort via DocValues
> -----------------------------------------------
>
>                 Key: SOLR-5170
>                 URL: https://issues.apache.org/jira/browse/SOLR-5170
>             Project: Solr
>          Issue Type: New Feature
>          Components: spatial
>            Reporter: David Smiley
>            Assignee: David Smiley
>         Attachments: SOLR-5170_spatial_multi-value_sort_via_docvalues.patch
>
>
> The attached patch implements spatial multi-value distance sorting.  In other words, a document can have more than one point per field, and using a provided function query, it will return the distance to the closest point.  The data goes into binary DocValues, and as-such it's pretty friendly to realtime search requirements, and it only uses 8 bytes per point.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org