[TEST] Make boost more prominent in test since with new default similarity it might score lower without the boost

This commit is contained in:
Simon Willnauer 2016-03-09 11:43:18 +01:00
parent b9b5c15fe1
commit f8ab6a6669
1 changed files with 1 additions and 1 deletions

View File

@ -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