Class TextOptions

    • Method Detail

      • defaultValue

        public final String defaultValue()
        A value to use for the field if the field isn't specified for a document.
        Returns:
        A value to use for the field if the field isn't specified for a document.
      • sourceField

        public final String sourceField()
        Returns the value of the SourceField property for this object.
        Returns:
        The value of the SourceField property for this object.
      • 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.
      • highlightEnabled

        public final Boolean highlightEnabled()

        Whether highlights can be returned for the field.

        Returns:
        Whether highlights can be returned for the field.
      • analysisScheme

        public final String analysisScheme()

        The name of an analysis scheme for a text field.

        Returns:
        The name of an analysis scheme for a text field.
      • 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)