Skip to content

Commit

Permalink
fix the build, remove usage of old ES specific IAE
Browse files Browse the repository at this point in the history
  • Loading branch information
rjernst committed May 7, 2015
1 parent c953e99 commit 748a040
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public static SearchRequest parseSearchRequest(RestRequest request) {
String searchType = request.param("search_type");
if (SearchType.fromString(searchType).equals(SearchType.QUERY_AND_FETCH) ||
SearchType.fromString(searchType).equals(SearchType.DFS_QUERY_AND_FETCH)) {
throw new ElasticsearchIllegalArgumentException("Unsupported search type [" + searchType + "]");
throw new IllegalArgumentException("Unsupported search type [" + searchType + "]");
} else {
searchRequest.searchType(searchType);
}
Expand Down

0 comments on commit 748a040

Please sign in to comment.