Interface DoubleOptions.Builder

All Superinterfaces:
Buildable, CopyableBuilder<DoubleOptions.Builder,DoubleOptions>, SdkBuilder<DoubleOptions.Builder,DoubleOptions>, SdkPojo
Enclosing class:
DoubleOptions

public static interface DoubleOptions.Builder extends SdkPojo, CopyableBuilder<DoubleOptions.Builder,DoubleOptions>
  • Method Details

    • defaultValue

      DoubleOptions.Builder defaultValue(Double defaultValue)

      A value to use for the field if the field isn't specified for a document. This can be important if you are using the field in an expression and that field is not present in every document.

      Parameters:
      defaultValue - A value to use for the field if the field isn't specified for a document. This can be important if you are using the field in an expression and that field is not present in every document.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceField

      DoubleOptions.Builder sourceField(String sourceField)

      The name of the source field to map to the field.

      Parameters:
      sourceField - The name of the source field to map to the field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • facetEnabled

      DoubleOptions.Builder facetEnabled(Boolean facetEnabled)

      Whether facet information can be returned for the field.

      Parameters:
      facetEnabled - Whether facet information can be returned for the field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • searchEnabled

      DoubleOptions.Builder searchEnabled(Boolean searchEnabled)

      Whether the contents of the field are searchable.

      Parameters:
      searchEnabled - Whether the contents of the field are searchable.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • returnEnabled

      DoubleOptions.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.
    • sortEnabled

      DoubleOptions.Builder sortEnabled(Boolean sortEnabled)

      Whether the field can be used to sort the search results.

      Parameters:
      sortEnabled - Whether the field can be used to sort the search results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.