Hi folks,

 

Looks like LUCENE-5795 
(https://github.com/apache/lucene-solr/commit/173a44e67c7c3c1a9ffbe7259ea8b45f1f53b015#diff-d3409eb300a059322d46e4c9f43717ed)
 changed the “lessThan” condition in FreqQ PriorityQueue to actually be less 
than in order to only collect top N terms.

 

However, when calculating the boost MoreLikeThis::createQuery() it still uses 
the PriorityQueue’s first pop() as the bestScore, when that actually would be 
the least element now. We worked around this in our production instance by 
iterating thru the entire PriorityQueue to find the largest score (since we 
only ever use very small N=5).

 

I’m wondering if this is what was intended or a known bug?

 

Thanks,

-Jesse

 

 

 

 

Reply via email to