I am also interested in this question.

I have found a fairly old code snippet [1] to calculate the cosine 
similarity in lucene, but I was wondering if elasticsearch provided an 
easier API to access this information.

[1] 
http://sujitpal.blogspot.ch/2011/10/computing-document-similarity-using.html

Hi, 
>
> I'm using elasticsearch to index documents and then, with an other 
> document, 
> I score similarity using the "more_like_this" query. 
> Just two questions: 
>
> Does the "more_like_this" query use cosine similarity to score documents 
> (I've read the documentation, but I'm still not sure)? 
> There is a way to get the scores between 0 and 1? 
>
> Thanks! 
>
>
>
> -- 
> View this message in context: 
> http://elasticsearch-users.115913.n3.nabble.com/Cosine-Similarity-ElasticSearch-tp4060620.html
>  
> Sent from the ElasticSearch Users mailing list archive at Nabble.com. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/6a2e446d-ec13-4db6-8cff-651ab5108235%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to