Skip to content

/AWS1/CL_KND=>CREATETHESAURUS()

About CreateThesaurus

Creates a thesaurus for an index. The thesaurus contains a list of synonyms in Solr format.

For an example of adding a thesaurus file to an index, see Adding custom synonyms to an index.

Method Signature

IMPORTING

Required arguments:

IV_INDEXID TYPE /AWS1/KNDINDEXID /AWS1/KNDINDEXID

The identifier of the index for the thesaurus.

IV_NAME TYPE /AWS1/KNDTHESAURUSNAME /AWS1/KNDTHESAURUSNAME

A name for the thesaurus.

IV_ROLEARN TYPE /AWS1/KNDROLEARN /AWS1/KNDROLEARN

The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains the thesaurus file. For more information, see IAM access roles for Amazon Kendra.

IO_SOURCES3PATH TYPE REF TO /AWS1/CL_KNDS3PATH /AWS1/CL_KNDS3PATH

The path to the thesaurus file in S3.

Optional arguments:

IV_DESCRIPTION TYPE /AWS1/KNDDESCRIPTION /AWS1/KNDDESCRIPTION

A description for the thesaurus.

IT_TAGS TYPE /AWS1/CL_KNDTAG=>TT_TAGLIST TT_TAGLIST

A list of key-value pairs that identify or categorize the thesaurus. You can also use tags to help control access to the thesaurus. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.

IV_CLIENTTOKEN TYPE /AWS1/KNDCLIENTTOKENNAME /AWS1/KNDCLIENTTOKENNAME

A token that you provide to identify the request to create a thesaurus. Multiple calls to the CreateThesaurus API with the same client token will create only one thesaurus.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_KNDCREATETHESAURUSRSP /AWS1/CL_KNDCREATETHESAURUSRSP