Boost and PayloadScoreQuery
explorer11 opened this issue · comments
Hi,
When I wrap a PayloadScoreQuery in a Boost query, I would expect the score from PayloadScoreQuery to be boosted. It isn't the case : the score from the Boost query is the same than the score coming from PayloadScoreQuery.
It isn't the case in Lucene. In Lucene, the score of the PayloadScoreQuery is boosted.
I'm uploading a test case made from com.qwazr.search.query.PayloadScoreQueryTest (see the method testWithBoost)
Regards
It works. There were an issue in the assertion of the test. The second assertation was checking the first result, and not the new one.
The test has been added in the code base. We took the opportunity to add the support of SpanBoost. Therefore there is two ways to handle the boost now.
Ok thank you ! I missed something in my test.