/AWS1/IF_KND=>SUBMITFEEDBACK()¶
About SubmitFeedback¶
Enables you to provide feedback to Amazon Kendra to improve the performance of your index.
SubmitFeedback is currently not supported in the
Amazon Web Services GovCloud (US-West) region.
Method Signature¶
METHODS /AWS1/IF_KND~SUBMITFEEDBACK
IMPORTING
!IV_INDEXID TYPE /AWS1/KNDINDEXID OPTIONAL
!IV_QUERYID TYPE /AWS1/KNDQUERYID OPTIONAL
!IT_CLICKFEEDBACKITEMS TYPE /AWS1/CL_KNDCLICKFEEDBACK=>TT_CLICKFEEDBACKLIST OPTIONAL
!IT_RELEVANCEFEEDBACKITEMS TYPE /AWS1/CL_KNDRELEVANCEFEEDBACK=>TT_RELEVANCEFEEDBACKLIST OPTIONAL
RAISING
/AWS1/CX_KNDACCESSDENIEDEX
/AWS1/CX_KNDINTERNALSERVEREX
/AWS1/CX_KNDRESOURCENOTFOUNDEX
/AWS1/CX_KNDRESOURCEUNAVAILEX
/AWS1/CX_KNDTHROTTLINGEX
/AWS1/CX_KNDVALIDATIONEX
/AWS1/CX_KNDCLIENTEXC
/AWS1/CX_KNDSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_indexid TYPE /AWS1/KNDINDEXID /AWS1/KNDINDEXID¶
The identifier of the index that was queried.
iv_queryid TYPE /AWS1/KNDQUERYID /AWS1/KNDQUERYID¶
The identifier of the specific query for which you are submitting feedback. The query ID is returned in the response to the
QueryAPI.
Optional arguments:¶
it_clickfeedbackitems TYPE /AWS1/CL_KNDCLICKFEEDBACK=>TT_CLICKFEEDBACKLIST TT_CLICKFEEDBACKLIST¶
Tells Amazon Kendra that a particular search result link was chosen by the user.
it_relevancefeedbackitems TYPE /AWS1/CL_KNDRELEVANCEFEEDBACK=>TT_RELEVANCEFEEDBACKLIST TT_RELEVANCEFEEDBACKLIST¶
Provides Amazon Kendra with relevant or not relevant feedback for whether a particular item was relevant to the search.
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
lo_client->submitfeedback(
it_clickfeedbackitems = VALUE /aws1/cl_kndclickfeedback=>tt_clickfeedbacklist(
(
new /aws1/cl_kndclickfeedback(
iv_clicktime = '20150101000000.0000000'
iv_resultid = |string|
)
)
)
it_relevancefeedbackitems = VALUE /aws1/cl_kndrelevancefeedback=>tt_relevancefeedbacklist(
(
new /aws1/cl_kndrelevancefeedback(
iv_relevancevalue = |string|
iv_resultid = |string|
)
)
)
iv_indexid = |string|
iv_queryid = |string|
).