Class IntOptions

    • Method Detail

      • defaultValue

        public final Long 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:
        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.
      • sourceField

        public final String sourceField()

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

        Returns:
        The name of the source field to map to the field.
      • facetEnabled

        public final Boolean facetEnabled()

        Whether facet information can be returned for the field.

        Returns:
        Whether facet information can be returned for the field.
      • searchEnabled

        public final Boolean searchEnabled()

        Whether the contents of the field are searchable.

        Returns:
        Whether the contents of the field are searchable.
      • returnEnabled

        public final Boolean returnEnabled()

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

        Returns:
        Whether the contents of the field can be returned in the search results.
      • sortEnabled

        public final Boolean sortEnabled()

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

        Returns:
        Whether the field can be used to sort the search results.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)