Tests: Fix HighlighterSearchIT#testMultiMatchQueryHighlight, dont use null type
This commit is contained in:
parent
a3c68f690b
commit
125be0a05f
|
@ -2119,7 +2119,7 @@ public class HighlighterSearchIT extends ESIntegTestCase {
|
||||||
} else {
|
} else {
|
||||||
supportedQueryTypes = MultiMatchQueryBuilder.Type.values();
|
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);
|
final MultiMatchQueryBuilder multiMatchQueryBuilder = multiMatchQuery("the quick brown fox", "field1", "field2").type(matchQueryType);
|
||||||
|
|
||||||
SearchSourceBuilder source = searchSource()
|
SearchSourceBuilder source = searchSource()
|
||||||
|
|
Loading…
Reference in New Issue