THIS IS ARCHIVED DOCUMENTATION

QuestionAnsweringActions (Deprecated)

The question answering action creators.

Loader Function

loadQuestionAnsweringActions

Loads the questionAnswering reducer and returns possible action creators.

Parameters

  • engine: SearchEngine

    The headless engine.

Returns QuestionAnsweringActionCreators: The question answering action creators.

QuestionAnsweringActionCreators

closeFeedbackModal

Closes the feedback modal of a smart snippet.

Returns PayloadAction: A dispatchable action.

collapseSmartSnippet

Collapses a smart snippet.

Returns PayloadAction: A dispatchable action.

collapseSmartSnippetRelatedQuestion

Collapses the specified snippet suggestion.

Parameters

Returns PayloadAction<QuestionAnsweringUniqueIdentifierActionCreatorPayload | QuestionAnsweringDocumentIdActionCreatorPayload>: A dispatchable action.

dislikeSmartSnippet

Dislikes a smart snippet (a 'thumbs down' reaction).

Returns PayloadAction: A dispatchable action.

expandSmartSnippet

Expands a smart snippet.

Returns PayloadAction: A dispatchable action.

expandSmartSnippetRelatedQuestion

Expands the specified snippet suggestion.

Parameters

Returns PayloadAction<QuestionAnsweringUniqueIdentifierActionCreatorPayload | QuestionAnsweringDocumentIdActionCreatorPayload>: A dispatchable action.

likeSmartSnippet

Likes a smart snippet (a 'thumbs up' reaction).

Returns PayloadAction: A dispatchable action.

openFeedbackModal

Opens the feedback modal of a smart snippet.

Returns PayloadAction: A dispatchable action.

QuestionAnsweringUniqueIdentifierActionCreatorPayload

Properties

  • questionAnswerId: string