Document evaluation

I'm trying to read the evaluation of lucene search results.

I am getting a set of document scores through the hits object when I use the following method: Hits hits = IndexSearcher.search (myQuery);

However, if I use the method: searchcher.search (myQuery, hitsCollector);

I am getting a completely different set of document scores via the hitCollector.hits object

Did I miss something?

Thank!

0


source to share


1 answer


The scores returned by the Hits object are normalized, that is, they are always in the range [0, 1], with the highest score close to or equal to 1. The scores assigned to the HitCollector object are raw, that is, normalized. In addition, the list of documents in the Hits object is sorted by decreasing points. The HitCollector object receives pairs of document pairs in some random order.



+2


source







All Articles