public class QueryParseContext
extends java.lang.Object
Constructor and Description |
---|
QueryParseContext(java.lang.String defaultScriptLanguage,
XContentParser parser) |
QueryParseContext(XContentParser parser) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultScriptLanguage()
Returns the default scripting language, that should be used if scripts don't specify the script language
explicitly.
|
boolean |
isDeprecatedSetting(java.lang.String setting) |
java.util.Optional<QueryBuilder> |
parseInnerQueryBuilder()
Parses a query excluding the query element that wraps it
|
XContentParser |
parser() |
QueryBuilder |
parseTopLevelQueryBuilder()
Parses a top level query including the query element that wraps it
|
public QueryParseContext(XContentParser parser)
public QueryParseContext(java.lang.String defaultScriptLanguage, XContentParser parser)
public XContentParser parser()
public boolean isDeprecatedSetting(java.lang.String setting)
public QueryBuilder parseTopLevelQueryBuilder()
public java.util.Optional<QueryBuilder> parseInnerQueryBuilder() throws java.io.IOException
java.io.IOException
public java.lang.String getDefaultScriptLanguage()