[TEST] Make boost more prominent in test since with new default similarity it might score lower without the boost
This commit is contained in:
parent
b9b5c15fe1
commit
f8ab6a6669
|
@ -567,7 +567,7 @@ public class MultiMatchQueryIT extends ESIntegTestCase {
|
|||
|
||||
// test if boosts work
|
||||
searchResponse = client().prepareSearch("test")
|
||||
.setQuery(randomizeType(multiMatchQuery("the ultimate", "full_name", "first_name", "last_name", "category").field("last_name", 2)
|
||||
.setQuery(randomizeType(multiMatchQuery("the ultimate", "full_name", "first_name", "last_name", "category").field("last_name", 10)
|
||||
.type(MultiMatchQueryBuilder.Type.CROSS_FIELDS)
|
||||
.operator(Operator.AND))).get();
|
||||
assertFirstHit(searchResponse, hasId("ultimate1")); // has ultimate in the last_name and that is boosted
|
||||
|
|
Loading…
Reference in New Issue