: I created an index with three documents, ran a query, and noted the scores. : Then I deleted one of the documents using IndexWriter.tryDeleteDocument, and : then re-added the exact same document. (I saved the Document in an instance : variable, so I couldn't have accidentally changed any of the fields.) After : rerunning the query, I am getting back the same documents, but with : different scores. Anyone know what's happening? I can post my code if anyone : is interested. Thanks!
Deleted docments still affect term stats like IDF until the are expunged. If you look at the Explanation from the Query for each of your matchings docs, you'll see the differneces in the stats and how they affect the scores. FYI, realted info (relevant to the ideas of "comparing" scores across indexes of queries)... https://wiki.apache.org/lucene-java/ScoresAsPercentages -Hoss http://www.lucidworks.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org