lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Urso <anthony.u...@gmail.com>
Subject Re: applying cosine similarity directly
Date Sat, 12 Sep 2009 23:26:21 GMT
There is a MoreLikeThis similarity search class in Lucene, it should
do what you're looking for.

http://lucene.apache.org/java/2_4_1/api/org/apache/lucene/search/similar/MoreLikeThis.html

Cheers,
Anthony

On Fri, Sep 11, 2009 at 11:25 PM, Alexy Khrabrov <deliverable@gmail.com> wrote:
> Given that I have a field for which term vector was computed and stored, and
> that field is the text of a document, I'd like to rank a subset of such
> documents by similarity to a given held-out document, or query, directly
> using the cosine measure.  How can that be done without going through
> creating a usual query?
> Cheers,
> Alexy
>

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


Mime
View raw message