Interface AttributeSuggestionsGetConfig.Builder

    • Method Detail

      • suggestionAttributes

        AttributeSuggestionsGetConfig.Builder suggestionAttributes​(Collection<String> suggestionAttributes)

        The list of document field/attribute keys or field names to use for query suggestions. If the content within any of the fields match what your user starts typing as their query, then the field content is returned as a query suggestion.

        Parameters:
        suggestionAttributes - The list of document field/attribute keys or field names to use for query suggestions. If the content within any of the fields match what your user starts typing as their query, then the field content is returned as a query suggestion.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • suggestionAttributes

        AttributeSuggestionsGetConfig.Builder suggestionAttributes​(String... suggestionAttributes)

        The list of document field/attribute keys or field names to use for query suggestions. If the content within any of the fields match what your user starts typing as their query, then the field content is returned as a query suggestion.

        Parameters:
        suggestionAttributes - The list of document field/attribute keys or field names to use for query suggestions. If the content within any of the fields match what your user starts typing as their query, then the field content is returned as a query suggestion.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • additionalResponseAttributes

        AttributeSuggestionsGetConfig.Builder additionalResponseAttributes​(Collection<String> additionalResponseAttributes)

        The list of additional document field/attribute keys or field names to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.

        Parameters:
        additionalResponseAttributes - The list of additional document field/attribute keys or field names to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • additionalResponseAttributes

        AttributeSuggestionsGetConfig.Builder additionalResponseAttributes​(String... additionalResponseAttributes)

        The list of additional document field/attribute keys or field names to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.

        Parameters:
        additionalResponseAttributes - The list of additional document field/attribute keys or field names to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attributeFilter

        AttributeSuggestionsGetConfig.Builder attributeFilter​(AttributeFilter attributeFilter)

        Filters the search results based on document fields/attributes.

        Parameters:
        attributeFilter - Filters the search results based on document fields/attributes.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • userContext

        AttributeSuggestionsGetConfig.Builder userContext​(UserContext userContext)

        Applies user context filtering so that only users who are given access to certain documents see these document in their search results.

        Parameters:
        userContext - Applies user context filtering so that only users who are given access to certain documents see these document in their search results.
        Returns:
        Returns a reference to this object so that method calls can be chained together.