Class Search

    • Method Detail

      • facetable

        public final Boolean facetable()

        Indicates that the field can be used to create search facets, a count of results for each value in the field. The default is false .

        Returns:
        Indicates that the field can be used to create search facets, a count of results for each value in the field. The default is false .
      • searchable

        public final Boolean searchable()

        Determines whether the field is used in the search. If the Searchable field is true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is true for string fields and false for number and date fields.

        Returns:
        Determines whether the field is used in the search. If the Searchable field is true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is true for string fields and false for number and date fields.
      • displayable

        public final Boolean displayable()

        Determines whether the field is returned in the query response. The default is true.

        Returns:
        Determines whether the field is returned in the query response. The default is true.
      • sortable

        public final Boolean sortable()

        Determines whether the field can be used to sort the results of a query. If you specify sorting on a field that does not have Sortable set to true, Amazon Kendra returns an exception. The default is false.

        Returns:
        Determines whether the field can be used to sort the results of a query. If you specify sorting on a field that does not have Sortable set to true, Amazon Kendra returns an exception. The default is false.
      • serializableBuilderClass

        public static Class<? extends Search.Builder> serializableBuilderClass()
      • 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)