From 125be0a05f5305c66f536e4a9e1b3b46a743a253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20B=C3=BCscher?= Date: Wed, 16 Sep 2015 18:14:53 +0200 Subject: [PATCH] Tests: Fix HighlighterSearchIT#testMultiMatchQueryHighlight, dont use null type --- .../org/elasticsearch/search/highlight/HighlighterSearchIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/java/org/elasticsearch/search/highlight/HighlighterSearchIT.java b/core/src/test/java/org/elasticsearch/search/highlight/HighlighterSearchIT.java index 3811cc48ecc..4134c4f2941 100644 --- a/core/src/test/java/org/elasticsearch/search/highlight/HighlighterSearchIT.java +++ b/core/src/test/java/org/elasticsearch/search/highlight/HighlighterSearchIT.java @@ -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()