Module spring.data.elasticsearch
Class HasChildQuery.Builder
java.lang.Object
org.springframework.data.elasticsearch.core.query.HasChildQuery.Builder
- Enclosing class:
- HasChildQuery
-
Method Summary
Modifier and TypeMethodDescriptionbuild()withIgnoreUnmapped(Boolean ignoreUnmapped) Indicates whether to ignore an unmappedtypeand not return any documents instead of an error.withInnerHitsQuery(InnerHitsQuery innerHitsQuery) Obtaining nested objects and documents that have a parent-child relationship.withMaxChildren(Integer maxChildren) The Maximum number of child documents that match thequeryallowed for a returned parent document.withMinChildren(Integer minChildren) Minimum number of child documents that match the query required to match thequeryfor a returned parent document.Query that specifies the documents to run on child documents of thetypefield.withScoreMode(HasChildQuery.ScoreMode scoreMode) Indicates how scores for matching child documents affect the root parent document’s relevance score.
-
Method Details
-
withQuery
Query that specifies the documents to run on child documents of thetypefield. -
withIgnoreUnmapped
Indicates whether to ignore an unmappedtypeand not return any documents instead of an error. Default, this is set tofalse. -
withMaxChildren
The Maximum number of child documents that match thequeryallowed for a returned parent document. If the parent document exceeds this limit, it is excluded from the search results. -
withMinChildren
Minimum number of child documents that match the query required to match thequeryfor a returned parent document. If the parent document does not meet this limit, it is excluded from the search results. -
withScoreMode
Indicates how scores for matching child documents affect the root parent document’s relevance score. -
withInnerHitsQuery
Obtaining nested objects and documents that have a parent-child relationship. -
build
-