import { Value } from '../../../cloudformation/Value';
import { ValueImportanceItemProps } from './ValueImportanceItemProps';
/**
  Provides information for tuning the relevance of a field in a search. When a query includes terms that match the field, the results are given a boost in the response based on these tuning parameters.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-index-relevance.html">the AWS Docs</a>
*/
export interface RelevanceProps {
    /** <code>Importance</code>  <a name="cfn-kendra-index-relevance-importance"></a>
  The relative importance of the field in the search. Larger numbers provide more of a boost than smaller numbers.<br />
  
  Required: No<br />
  
  Minimum: <code>1</code><br />
  
  Maximum: <code>10</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    importance?: Value<number>;
    /** <code>RankOrder</code>  <a name="cfn-kendra-index-relevance-rankorder"></a>
  Determines how values should be interpreted.<br />
  When the <code>RankOrder</code> field is <code>ASCENDING</code>, higher numbers are better. For example, a document with a rating score of 10 is higher ranking than a document with a rating score of 1.<br />
  When the <code>RankOrder</code> field is <code>DESCENDING</code>, lower numbers are better. For example, in a task tracking application, a priority 1 task is more important than a priority 5 task.<br />
  Only applies to <code>LONG</code> and <code>DOUBLE</code> fields.<br />
  
  Required: No<br />
  
  Allowed values: <code>ASCENDING | DESCENDING</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    rankOrder?: Value<'ASCENDING' | 'DESCENDING'>;
    /** <code>ValueImportanceItems</code>  <a name="cfn-kendra-index-relevance-valueimportanceitems"></a>
  An array of key-value pairs for different boosts when they appear in the search result list. For example, if you want to boost query terms that match the “department” field in the result, query terms that match this field are boosted in the result. You can add entries from the department field to boost documents with those values higher.<br />
  For example, you can add entries to the map with names of departments. If you add “HR”, 5 and “Legal”,3 those departments are given special attention when they appear in the metadata of a document.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    valueImportanceItems?: ValueImportanceItemProps[];
    /** <code>Freshness</code>  <a name="cfn-kendra-index-relevance-freshness"></a>
  Indicates that this field determines how “fresh” a document is. For example, if document 1 was created on November 5, and document 2 was created on October 31, document 1 is “fresher” than document 2. You can only set the <code>Freshness</code> field on one <code>DATE</code> type field. Only applies to <code>DATE</code> fields.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    freshness?: Value<boolean>;
    /** <code>Duration</code>  <a name="cfn-kendra-index-relevance-duration"></a>
  Specifies the time period that the boost applies to. For example, to make the boost apply to documents with the field value within the last month, you would use “2628000s”. Once the field value is beyond the specified range, the effect of the boost drops off. The higher the importance, the faster the effect drops off. If you don’t specify a value, the default is 3 months. The value of the field is a numeric string followed by the character “s”, for example “86400s” for one day, or “604800s” for one week.<br />
  Only applies to <code>DATE</code> fields.<br />
  
  Required: No<br />
  
  Minimum: <code>1</code><br />
  
  Maximum: <code>10</code><br />
  
  Pattern: <code>[0-9]+[s]</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    duration?: Value<string>;
}
