java.lang.Object
org.springframework.data.elasticsearch.core.query.HasChildQuery.Builder
Enclosing class:
HasChildQuery

public static final class HasChildQuery.Builder extends Object
  • Method Details

    • withQuery

      public HasChildQuery.Builder withQuery(Query query)
      Query that specifies the documents to run on child documents of the type field.
    • withIgnoreUnmapped

      public HasChildQuery.Builder withIgnoreUnmapped(@Nullable Boolean ignoreUnmapped)
      Indicates whether to ignore an unmapped type and not return any documents instead of an error. Default, this is set to false.
    • withMaxChildren

      public HasChildQuery.Builder withMaxChildren(@Nullable Integer maxChildren)
      The Maximum number of child documents that match the query allowed for a returned parent document. If the parent document exceeds this limit, it is excluded from the search results.
    • withMinChildren

      public HasChildQuery.Builder withMinChildren(@Nullable Integer minChildren)
      Minimum number of child documents that match the query required to match the query for a returned parent document. If the parent document does not meet this limit, it is excluded from the search results.
    • withScoreMode

      public HasChildQuery.Builder withScoreMode(@Nullable HasChildQuery.ScoreMode scoreMode)
      Indicates how scores for matching child documents affect the root parent document’s relevance score.
    • withInnerHitsQuery

      public HasChildQuery.Builder withInnerHitsQuery(@Nullable InnerHitsQuery innerHitsQuery)
      Obtaining nested objects and documents that have a parent-child relationship.
    • build

      public HasChildQuery build()