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, freeze
public InnerFilter(QueryParseContext parseContext1, @Nullable String... types) throws IOException
IOException
public 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 XContentStructure
types
- types to be used during the inner filter parsingXConstantScoreQuery
wrapping the filter parsed from the bytes captured in freeze()
IOException
Copyright © 2009–2015. All rights reserved.