public class HasChildQueryParser extends Object implements QueryParser
| Modifier and Type | Class and Description |
|---|---|
static class |
HasChildQueryParser.LateParsingQuery
A query that rewrites into another query using
JoinUtil.createJoinQuery(String, Query, Query, IndexSearcher, ScoreMode, MultiDocValues.OrdinalMap, int, int)
that executes the actual join. |
| Constructor and Description |
|---|
HasChildQueryParser(InnerHitsQueryParserHelper innerHitsQueryParserHelper) |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.lucene.search.Query |
joinUtilHelper(String parentType,
ParentChildIndexFieldData parentChildIndexFieldData,
org.apache.lucene.search.similarities.Similarity similarity,
org.apache.lucene.search.Query toQuery,
ScoreType scoreType,
org.apache.lucene.search.Query innerQuery,
int minChildren,
int maxChildren) |
String[] |
names()
The names this query parser is registered under.
|
org.apache.lucene.search.Query |
parse(QueryParseContext parseContext)
Parses the into a query from the current parser location.
|
public static final String NAME
@Inject public HasChildQueryParser(InnerHitsQueryParserHelper innerHitsQueryParserHelper)
public String[] names()
QueryParsernames in interface QueryParserpublic org.apache.lucene.search.Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException
QueryParserReturns null if this query should be ignored in the context of the DSL.
parse in interface QueryParserIOExceptionQueryParsingExceptionpublic static org.apache.lucene.search.Query joinUtilHelper(String parentType, ParentChildIndexFieldData parentChildIndexFieldData, org.apache.lucene.search.similarities.Similarity similarity, org.apache.lucene.search.Query toQuery, ScoreType scoreType, org.apache.lucene.search.Query innerQuery, int minChildren, int maxChildren) throws IOException
IOExceptionCopyright © 2009–2017. All rights reserved.