Tests: Fix HighlighterSearchIT#testMultiMatchQueryHighlight, dont use null type

This commit is contained in:
Christoph Büscher 2015-09-16 18:14:53 +02:00
parent a3c68f690b
commit 125be0a05f
1 changed files with 1 additions and 1 deletions

View File

@ -2119,7 +2119,7 @@ public class HighlighterSearchIT extends ESIntegTestCase {
} else {
supportedQueryTypes = MultiMatchQueryBuilder.Type.values();
}
MultiMatchQueryBuilder.Type matchQueryType = rarely() ? null : RandomPicks.randomFrom(getRandom(), supportedQueryTypes);
MultiMatchQueryBuilder.Type matchQueryType = RandomPicks.randomFrom(getRandom(), supportedQueryTypes);
final MultiMatchQueryBuilder multiMatchQueryBuilder = multiMatchQuery("the quick brown fox", "field1", "field2").type(matchQueryType);
SearchSourceBuilder source = searchSource()