Interface TextArrayOptions.Builder

    • Method Detail

      • defaultValue

        TextArrayOptions.Builder defaultValue​(String defaultValue)
        A value to use for the field if the field isn't specified for a document.
        Parameters:
        defaultValue - A value to use for the field if the field isn't specified for a document.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sourceFields

        TextArrayOptions.Builder sourceFields​(String sourceFields)

        A list of source fields to map to the field.

        Parameters:
        sourceFields - A list of source fields to map to the field.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • returnEnabled

        TextArrayOptions.Builder returnEnabled​(Boolean returnEnabled)

        Whether the contents of the field can be returned in the search results.

        Parameters:
        returnEnabled - Whether the contents of the field can be returned in the search results.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • highlightEnabled

        TextArrayOptions.Builder highlightEnabled​(Boolean highlightEnabled)

        Whether highlights can be returned for the field.

        Parameters:
        highlightEnabled - Whether highlights can be returned for the field.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • analysisScheme

        TextArrayOptions.Builder analysisScheme​(String analysisScheme)

        The name of an analysis scheme for a text-array field.

        Parameters:
        analysisScheme - The name of an analysis scheme for a text-array field.
        Returns:
        Returns a reference to this object so that method calls can be chained together.