Interface QueryFacetRequest.Builder

Enclosing interface:
QueryFacetRequest

public static interface QueryFacetRequest.Builder
Creates an instance of QueryFacetRequest.
  • Method Details

    • withFacetFields

      QueryFacetRequest.Builder withFacetFields(List<String> facetFields)
      Required: Sets the facet fields, replacing any existing fields. Must be set before calling build(). Setting more than 10 fields will cause the query request to fail.
      Parameters:
      facetFields - the List of fields to facet on
      Returns:
      this Builder
    • includeLabels

      QueryFacetRequest.Builder includeLabels(boolean shouldIncludeLabels)
      Indicates whether the QueryFacetValues should include the labels for the values.
      Parameters:
      shouldIncludeLabels - true if value labels should be included in the response, false otherwise
      Returns:
      this Builder
    • build

      Returns a completed QueryFacetRequest.
      Returns:
      the completed QueryFacetRequest