lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anshum <ansh...@gmail.com>
Subject Re: [ no subject ]
Date Fri, 01 May 2009 04:18:34 GMT
As per my knowledge, you'd have to index one of the docs  and then run a
query (second doc) to get the similarity score.
Also, the default similarity would take into account more factors than the
regular VSM hence, you'd even have to look into it.
You may write code that on the fly creates a volatile index, runs a query,
returns the similarity and clears the index (which would happen implicitly
in case of a ramdir approach.

--
Anshum Gupta
Naukri Labs!
http://ai-cafe.blogspot.com

The facts expressed here belong to everybody, the opinions to me. The
distinction is yours to draw............


On Thu, Apr 30, 2009 at 8:58 PM, Kamal Najib <kamal.najib@mytum.de> wrote:

> Hi,
> A am new in Lucene and I want to get the similarity between two vectors of
> strings,is there a method, who do that?
> for example assume the vectors:
> Vector1 :<"term1","term2","term3">
> Vector2:<"term4","term5","term5">
> is there a method to get the similarity between them in lucene,or is there
> any other way to do it?
> for esample: getTheSymilarity(Vector1,Vector2).
> Thanks in advance.
> kamal.
>
> --
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message