public class ParseFieldMatcher extends Object
ParseField while parsing requests. Matches a ParseField
against a field name and throw deprecation exception depending on the current value of the IndexQueryParserService.PARSE_STRICT setting.| Modifier and Type | Field and Description |
|---|---|
static ParseFieldMatcher |
EMPTY |
static ParseFieldMatcher |
STRICT |
| Constructor and Description |
|---|
ParseFieldMatcher(boolean strict) |
ParseFieldMatcher(Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStrict()
Should deprecated settings be rejected?
|
boolean |
match(String fieldName,
ParseField parseField)
Matches a
ParseField against a field name, and throws deprecation exception depending on the current
value of the IndexQueryParserService.PARSE_STRICT setting. |
public static final ParseFieldMatcher EMPTY
public static final ParseFieldMatcher STRICT
public ParseFieldMatcher(Settings settings)
public ParseFieldMatcher(boolean strict)
public boolean isStrict()
public boolean match(String fieldName, ParseField parseField)
ParseField against a field name, and throws deprecation exception depending on the current
value of the IndexQueryParserService.PARSE_STRICT setting.fieldName - the field name found in the request while parsingparseField - the parse field that we are looking forIllegalArgumentException - whenever we are in strict mode and the request contained a deprecated fieldCopyright © 2009–2016. All rights reserved.