Values.CreateFeaturedResultsSetRequestSourceCreates a set of featured results to display at the top of the search results page. Featured results are placed above all other results for certain queries. You map specific queries to specific documents for featuring in the results. If a query contains an exact match, then one or more specific documents are featured in the search results. You can create up to 50 sets of featured results per index. You can request to increase this limit by contacting Support.
type nonrec t = {indexId : IndexId.t;The identifier of the index that you want to use for featuring results.
*)featuredResultsSetName : FeaturedResultsSetName.t;A name for the set of featured results.
*)description : FeaturedResultsSetDescription.t option;A description for the set of featured results.
*)clientToken : ClientTokenName.t option;A token that you provide to identify the request to create a set of featured results. Multiple calls to the CreateFeaturedResultsSet API with the same client token will create only one featured results set.
*)status : FeaturedResultsSetStatus.t option;The current status of the set of featured results. When the value is ACTIVE, featured results are ready for use. You can still configure your settings before setting the status to ACTIVE. You can set the status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per featured results set for each index, whether the status is ACTIVE or INACTIVE.
*)queryTexts : QueryTextList.t option;A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet.
*)featuredDocuments : FeaturedDocumentList.t option;A list of document IDs for the documents you want to feature at the top of the search results page. For more information on the list of documents, see FeaturedResultsSet.
*)}val make :
?description:??? ->
?clientToken:??? ->
?status:??? ->
?queryTexts:??? ->
?featuredDocuments:??? ->
?tags:??? ->
indexId:IndexId.t ->
featuredResultsSetName:FeaturedResultsSetName.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `List of
[> `String of QueryText.t
| `Structure of (string * [> `String of DocumentId.t ]) list ]
list
| `String of IndexId.t ])
list ]