Change SearchTypes to be `QUERY_THEN_FETCH`

This closes elastic/elasticsearch#165

Original commit: elastic/x-pack-elasticsearch@b7642cf33d
This commit is contained in:
Brian Murphy 2015-04-02 19:15:09 -04:00
parent b85c0ca1a7
commit f12ead6a4c
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ public class SearchInput extends Input<SearchInput.Result> {
public static final String TYPE = "search";
public static final SearchType DEFAULT_SEARCH_TYPE = SearchType.COUNT;
public static final SearchType DEFAULT_SEARCH_TYPE = SearchType.QUERY_THEN_FETCH;
private final Set<String> extractKeys;
private final SearchRequest searchRequest;

View File

@ -40,7 +40,7 @@ public class SearchTransform extends Transform<SearchTransform.Result> {
public static final String TYPE = "search";
public static final SearchType DEFAULT_SEARCH_TYPE = SearchType.DFS_QUERY_AND_FETCH;
public static final SearchType DEFAULT_SEARCH_TYPE = SearchType.QUERY_THEN_FETCH;
protected final ESLogger logger;
protected final ScriptServiceProxy scriptService;