1. @sitecore-cloudsdk/search/server

RelatedQuestionsOptions

Version:

Type

Interface

Import path

@sitecore-cloudsdk/search/server

Options to retrieve AI-generated question-and-answer pairs relevant to the site visitor's query. Used in the questions-answers object of a widget item.

Signature

export interface RelatedQuestionsOptions {
  limit?: number;
  includeSources?: boolean;
  filter?: Filter;
  offset?: number;
}

Properties

Name

Type

Description

Value

limit

integer

Optional.

The number to set as the question-and-answer pair limit.

Used for pagination by specifying the maximum number of question-and-answer pairs to return.

Minimum: 1.

Maximum: 100.

25

includeSources

boolean

Optional.

Include configured additional attributes from index documents used to generate this answer.

true

filter

Filter

Optional.

Various filter criteria that can be used to filter the content to be returned.

N/A

offset

integer

Optional.

The number of items to skip in the results that are returned.

Used for pagination by indicating how many results to skip.

For example, 10 means the related question-and-answer pairs show the 11th item onwards.

Minimum: 1.

1

If you have suggestions for improving this article, let us know!