@Deprecated public final class ChildrenQuery extends IndexCacheableQuery
ParentChildIndexFieldData
.
This query is executed in two rounds. The first round resolves all the matching child documents and groups these documents by parent uid value. Also the child scores are aggregated per parent uid value. During the second round all parent documents having the same uid value that is collected in the first phase are emitted as hit including a score based on the aggregated child scores and score type.
Modifier and Type | Class and Description |
---|---|
protected static class |
ChildrenQuery.ParentCollector
Deprecated.
|
protected static class |
ChildrenQuery.ParentScoreCollector
Deprecated.
|
protected static class |
ChildrenQuery.ParentScoreCountCollector
Deprecated.
|
protected class |
ChildrenQuery.ParentWeight
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected org.apache.lucene.search.Query |
childQuery
Deprecated.
|
protected String |
childType
Deprecated.
|
protected ParentChildIndexFieldData |
ifd
Deprecated.
|
protected int |
maxChildren
Deprecated.
|
protected int |
minChildren
Deprecated.
|
protected org.apache.lucene.search.join.BitSetProducer |
nonNestedDocsFilter
Deprecated.
|
protected org.apache.lucene.search.Filter |
parentFilter
Deprecated.
|
protected String |
parentType
Deprecated.
|
protected ScoreType |
scoreType
Deprecated.
|
protected int |
shortCircuitParentDocSet
Deprecated.
|
Constructor and Description |
---|
ChildrenQuery(ParentChildIndexFieldData ifd,
String parentType,
String childType,
org.apache.lucene.search.Filter parentFilter,
org.apache.lucene.search.Query childQuery,
ScoreType scoreType,
int minChildren,
int maxChildren,
int shortCircuitParentDocSet,
org.apache.lucene.search.join.BitSetProducer nonNestedDocsFilter)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Weight |
doCreateWeight(org.apache.lucene.search.IndexSearcher searcher,
boolean needsScores)
Deprecated.
Create a
Weight for this query. |
boolean |
equals(Object obj)
Deprecated.
|
int |
hashCode()
Deprecated.
|
org.apache.lucene.search.Query |
rewrite(org.apache.lucene.index.IndexReader reader)
Deprecated.
|
String |
toString(String field)
Deprecated.
|
createWeight
protected final ParentChildIndexFieldData ifd
protected final String parentType
protected final String childType
protected final org.apache.lucene.search.Filter parentFilter
protected final ScoreType scoreType
protected org.apache.lucene.search.Query childQuery
protected final int minChildren
protected final int maxChildren
protected final int shortCircuitParentDocSet
protected final org.apache.lucene.search.join.BitSetProducer nonNestedDocsFilter
public ChildrenQuery(ParentChildIndexFieldData ifd, String parentType, String childType, org.apache.lucene.search.Filter parentFilter, org.apache.lucene.search.Query childQuery, ScoreType scoreType, int minChildren, int maxChildren, int shortCircuitParentDocSet, org.apache.lucene.search.join.BitSetProducer nonNestedDocsFilter)
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws IOException
rewrite
in class IndexCacheableQuery
IOException
public boolean equals(Object obj)
equals
in class IndexCacheableQuery
public int hashCode()
hashCode
in class IndexCacheableQuery
public String toString(String field)
toString
in class org.apache.lucene.search.Query
public org.apache.lucene.search.Weight doCreateWeight(org.apache.lucene.search.IndexSearcher searcher, boolean needsScores) throws IOException
IndexCacheableQuery
Weight
for this query.doCreateWeight
in class IndexCacheableQuery
IOException
Query.createWeight(IndexSearcher, boolean)
Copyright © 2009–2016. All rights reserved.