diff --git a/elasticsearch/src/test/java/org/elasticsearch/xpack/watcher/history/HistoryTemplateSearchInputMappingsTests.java b/elasticsearch/src/test/java/org/elasticsearch/xpack/watcher/history/HistoryTemplateSearchInputMappingsTests.java index 5f179df8ad4..42db03918cb 100644 --- a/elasticsearch/src/test/java/org/elasticsearch/xpack/watcher/history/HistoryTemplateSearchInputMappingsTests.java +++ b/elasticsearch/src/test/java/org/elasticsearch/xpack/watcher/history/HistoryTemplateSearchInputMappingsTests.java @@ -51,7 +51,7 @@ public class HistoryTemplateSearchInputMappingsTests extends AbstractWatcherInte refresh(); WatcherSearchTemplateRequest request = new WatcherSearchTemplateRequest( - new String[]{index}, new String[]{type}, SearchType.QUERY_AND_FETCH, + new String[]{index}, new String[]{type}, SearchType.QUERY_THEN_FETCH, WatcherSearchTemplateRequest.DEFAULT_INDICES_OPTIONS, new BytesArray("{}") ); PutWatchResponse putWatchResponse = watcherClient().preparePutWatch("_id").setSource(watchBuilder() diff --git a/elasticsearch/src/test/java/org/elasticsearch/xpack/watcher/test/WatcherTestUtils.java b/elasticsearch/src/test/java/org/elasticsearch/xpack/watcher/test/WatcherTestUtils.java index e36c68e2eb2..e4130d3bff0 100644 --- a/elasticsearch/src/test/java/org/elasticsearch/xpack/watcher/test/WatcherTestUtils.java +++ b/elasticsearch/src/test/java/org/elasticsearch/xpack/watcher/test/WatcherTestUtils.java @@ -253,9 +253,6 @@ public final class WatcherTestUtils { } public static SearchType getRandomSupportedSearchType() { - return randomFrom( - SearchType.QUERY_AND_FETCH, - SearchType.QUERY_THEN_FETCH, - SearchType.DFS_QUERY_THEN_FETCH); + return randomFrom(SearchType.QUERY_THEN_FETCH, SearchType.DFS_QUERY_THEN_FETCH); } }