public abstract class JoinQueryBuilders
extends java.lang.Object
Constructor | Description |
---|---|
JoinQueryBuilders() |
Modifier and Type | Method | Description |
---|---|---|
static HasChildQueryBuilder |
hasChildQuery(java.lang.String type,
org.elasticsearch.index.query.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,
org.elasticsearch.index.query.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, org.elasticsearch.index.query.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, org.elasticsearch.index.query.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)