You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Aidan <ai...@gmail.com> on 2009/03/23 15:56:43 UTC

Calculating similarity of values that contain a mix of text and numerics

I want to store name-value pairs in a multi-valued field, e.g.

properties: "length 42", "height 12", "width 20"

Is there a way of comparing similar documents with these part text/part
numeric fields so that closer numeric values are scored higher?

Re: Calculating similarity of values that contain a mix of text and numerics

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Not out of the box.  You may be able to achieve this with a custom Function Query (info on zee Wiki).

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: Aidan <ai...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Monday, March 23, 2009 10:56:43 AM
> Subject: Calculating similarity of values that contain a mix of text and  numerics
> 
> I want to store name-value pairs in a multi-valued field, e.g.
> 
> properties: "length 42", "height 12", "width 20"
> 
> Is there a way of comparing similar documents with these part text/part
> numeric fields so that closer numeric values are scored higher?