Re: Calculate the score of an arbitrary string vs a query?

2015-04-10 Thread Jack Krupansky
There is doc for tf*idf scoring in the javadoc: http://lucene.apache.org/core/5_0_0/core/org/apache/lucene/search/similarities/TFIDFSimilarity.html The IndexSearcher#explain method returns an Explanation structure which details the scoring for a document: http://lucene.apache.org/core/5_0_0/core/o

Re: Calculate the score of an arbitrary string vs a query?

2015-04-10 Thread Gregory Dearing
Hi Ali, The short answer to your question is... there's no good way to create a score from your result string, without using the Lucene index, that will be directly comparable to the Lucene score. The reason is that the score isn't just a function of the query and the contents of the document. I