i have built an index in Lucene. I want without specifying a query, just to get a score (cosine similarity or another distance?) between two documents in the index.
I know question has been answered, but for the people who might come here in future, nice example of the solution can be found here:
http://sujitpal.blogspot.ch/2011/10/computing-document-similarity-using.html