mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-01 16:39:11 +00:00
parent
ebc0c8cc6d
commit
20ce01bd53
@ -92,12 +92,18 @@ public class TermsQueryParser implements QueryParser {
|
||||
minimumShouldMatch = parser.textOrNull();
|
||||
} else if ("boost".equals(currentFieldName)) {
|
||||
boost = parser.floatValue();
|
||||
} else {
|
||||
throw new QueryParsingException(parseContext.index(), "[terms] query does not support [" + currentFieldName + "]");
|
||||
}
|
||||
} else {
|
||||
throw new QueryParsingException(parseContext.index(), "[terms] query does not support [" + currentFieldName + "]");
|
||||
}
|
||||
}
|
||||
|
||||
if (fieldName == null) {
|
||||
throw new QueryParsingException(parseContext.index(), "No field specified for terms query");
|
||||
}
|
||||
|
||||
FieldMapper mapper = null;
|
||||
MapperService.SmartNameFieldMappers smartNameFieldMappers = parseContext.smartFieldMappers(fieldName);
|
||||
String[] previousTypes = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user