public static class XContentStructure.InnerFilter extends XContentStructure
XContentStructure that eagerly
parses the filter in a streaming manner if the types are available at
construction time.XContentStructure.InnerFilter, XContentStructure.InnerQuery| Constructor and Description |
|---|
InnerFilter(QueryParseContext parseContext1,
String... types) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.search.Query |
asFilter(String... types)
Return the filter as an
XConstantScoreQuery
represented by the XContentStructure object,
returning the cached Query if it has already been parsed. |
asQuery, bytes, bytes, freezepublic InnerFilter(QueryParseContext parseContext1, @Nullable String... types) throws IOException
IOExceptionpublic org.apache.lucene.search.Query asFilter(String... types) throws IOException
XConstantScoreQuery
represented by the XContentStructure object,
returning the cached Query if it has already been parsed.asFilter in class XContentStructuretypes - types to be used during the inner filter parsingXConstantScoreQuery wrapping the filter parsed from the bytes captured in freeze()IOExceptionCopyright © 2009–2016. All rights reserved.