Remove obsolet search type QUERY_AND_FETCH
Original commit: elastic/x-pack-elasticsearch@10329462bd
This commit is contained in:
parent
ccf3ac9c82
commit
14e97565fa
|
@ -51,7 +51,7 @@ public class HistoryTemplateSearchInputMappingsTests extends AbstractWatcherInte
|
||||||
refresh();
|
refresh();
|
||||||
|
|
||||||
WatcherSearchTemplateRequest request = new WatcherSearchTemplateRequest(
|
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("{}")
|
WatcherSearchTemplateRequest.DEFAULT_INDICES_OPTIONS, new BytesArray("{}")
|
||||||
);
|
);
|
||||||
PutWatchResponse putWatchResponse = watcherClient().preparePutWatch("_id").setSource(watchBuilder()
|
PutWatchResponse putWatchResponse = watcherClient().preparePutWatch("_id").setSource(watchBuilder()
|
||||||
|
|
|
@ -253,9 +253,6 @@ public final class WatcherTestUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static SearchType getRandomSupportedSearchType() {
|
public static SearchType getRandomSupportedSearchType() {
|
||||||
return randomFrom(
|
return randomFrom(SearchType.QUERY_THEN_FETCH, SearchType.DFS_QUERY_THEN_FETCH);
|
||||||
SearchType.QUERY_AND_FETCH,
|
|
||||||
SearchType.QUERY_THEN_FETCH,
|
|
||||||
SearchType.DFS_QUERY_THEN_FETCH);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue