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()
QueryParser
names
in interface QueryParser
public org.apache.lucene.search.Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException
QueryParser
Returns null if this query should be ignored in the context of the DSL.
parse
in interface QueryParser
IOException
QueryParsingException
public 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
IOException
Copyright © 2009–2016. All rights reserved.