Class IndexDocumentMetadataConfigurationUpdateRelevance


  • public final class IndexDocumentMetadataConfigurationUpdateRelevance
    extends java.lang.Object
    • Method Detail

      • duration

        public java.util.Optional<java.lang.String> duration()
        Returns:
        Time period that the boost applies to. Required if `type` is `DATE_VALUE`. For more information, refer to [Duration](https://docs.aws.amazon.com/kendra/latest/dg/API_Relevance.html#Kendra-Type-Relevance-Duration).
      • freshness

        public java.util.Optional<java.lang.Boolean> freshness()
        Returns:
        Whether this field determines how "fresh" a document is. Required if `type` is `DATE_VALUE`. For more information, refer to [Freshness](https://docs.aws.amazon.com/kendra/latest/dg/API_Relevance.html#Kendra-Type-Relevance-Freshness).
      • importance

        public java.util.Optional<java.lang.Integer> importance()
        Returns:
        Relative importance of the field in the search. Required for all types. Larger numbers provide more of a boost than smaller numbers. Minimum value of 1. Maximum value of 10.
      • rankOrder

        public java.util.Optional<java.lang.String> rankOrder()
        Returns:
        How values should be interpreted. Required if `type` is `DATE_VALUE` or `LONG_VALUE`. For more information, refer to [RankOrder](https://docs.aws.amazon.com/kendra/latest/dg/API_Relevance.html#Kendra-Type-Relevance-RankOrder).
      • valuesImportanceMap

        public java.util.Map<java.lang.String,​java.lang.Integer> valuesImportanceMap()
        Returns:
        List of values that should be given a different boost when they appear in the result list. Required if `type` is `STRING_VALUE`. For more information, refer to [ValueImportanceMap](https://docs.aws.amazon.com/kendra/latest/dg/API_Relevance.html#Kendra-Type-Relevance-ValueImportanceMap).