Search API: URI request allow to additional query_string parameters, closes #1178.

This commit is contained in:
Shay Banon 2011-07-29 09:48:09 +03:00
parent b07d9d56b4
commit c0266a10d4
1 changed files with 2 additions and 0 deletions

View File

@ -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)) {