Search API: URI request allow to additional query_string parameters, closes #1178.
This commit is contained in:
parent
b07d9d56b4
commit
c0266a10d4
|
@ -153,6 +153,8 @@ public class RestSearchAction extends BaseRestHandler {
|
|||
QueryStringQueryBuilder queryBuilder = QueryBuilders.queryString(queryString);
|
||||
queryBuilder.defaultField(request.param("df"));
|
||||
queryBuilder.analyzer(request.param("analyzer"));
|
||||
queryBuilder.analyzeWildcard(request.paramAsBoolean("analyze_wildcard", false));
|
||||
queryBuilder.lowercaseExpandedTerms(request.paramAsBoolean("lowercase_expanded_terms", true));
|
||||
String defaultOperator = request.param("default_operator");
|
||||
if (defaultOperator != null) {
|
||||
if ("OR".equals(defaultOperator)) {
|
||||
|
|
Loading…
Reference in New Issue