lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grant Ingersoll (JIRA)" <>
Subject [jira] Updated: (SOLR-1302) Fun with Distances - Add Distance functions for a variety of things
Date Sat, 14 Nov 2009 09:45:39 GMT


Grant Ingersoll updated SOLR-1302:

    Attachment: SOLR-1302.patch

No need for all of these classes for one offs of distance.  Implement general Lp_Space Vector
distance function + a special case for the squared euclidean distance (which isn't really
a distance, but is still useful.)


Euclidean distance is dist(2, valuesources...), while Manhattan is (dist(1, valuesources...).
 Handles some powers as special cases for improved speed.

This pretty much enables Solr to do some pretty cool stuff when it comes to vector calculations.

See the tests for how to use.  Will add Wiki later.

> Fun with Distances - Add Distance functions for a variety of things
> -------------------------------------------------------------------
>                 Key: SOLR-1302
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 1.5
>         Attachments: SOLR-1302.patch, SOLR-1302.patch, SOLR-1302.patch
> There are many distance functions that are useful to have:
> 1. Great Circle (lat/lon) and other geo distances
> 2. Euclidean (Vector)
> 3. Manhattan (Vector)
> 4. Cosine (Vector)
> For the vector ones, the idea is that the fields on a document can be used to determine
the vector.  

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message