public abstract class JoinQueryBuilders
extends java.lang.Object
Constructor and Description |
---|
JoinQueryBuilders() |
Modifier and Type | Method and Description |
---|---|
static HasChildQueryBuilder |
hasChildQuery(java.lang.String type,
QueryBuilder query,
org.apache.lucene.search.join.ScoreMode scoreMode)
Constructs a new has_child query, with the child type and the query to run on the child documents.
|
static HasParentQueryBuilder |
hasParentQuery(java.lang.String type,
QueryBuilder query,
boolean score)
Constructs a new parent query, with the parent type and the query to run on the parent documents.
|
static ParentIdQueryBuilder |
parentId(java.lang.String type,
java.lang.String id)
Constructs a new parent id query that returns all child documents of the specified type that
point to the specified id.
|
public static HasChildQueryBuilder hasChildQuery(java.lang.String type, QueryBuilder query, org.apache.lucene.search.join.ScoreMode scoreMode)
type
- The child type.query
- The query.scoreMode
- How the scores from the children hits should be aggregated into the parent hit.public static HasParentQueryBuilder hasParentQuery(java.lang.String type, QueryBuilder query, boolean score)
type
- The parent type.query
- The query.score
- Whether the score from the parent hit should propagate to the child hitpublic static ParentIdQueryBuilder parentId(java.lang.String type, java.lang.String id)