1. Searchリクエスト

質問インターフェース

日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

Sitecore Searchでは、検索クエリがキーワードに関連する質問や回答を返すことが可能です。AI生成コンテンツには以下のオブジェクトと方法を使いましょう。

質問インターフェース

名称

種類

概要

keyphrase

ストリング

返す質問を検索するためのフレーズ。

exact_answer

アコクトアンサー

返すべき値の種類を記述するObject。

related_questions

関連質問

回答に何つ、どの質問を含めるかを説明するObject。

RelatedQuestions interface

名称

種類

概要

limit

番号

質問と回答のペア数の上限。

デフォルト

offset

番号

セット開始前に戻る前に省略すべき質問と回答のペアの数。

ExactAnswer interface

名称

種類

概要

query_types

ストリング

生成すべき値の種類を記述します。

質問発言またはキーワード

!注特に明記がない限り、すべての値は任意です。

ISearchRequest methods

以下のコードブロックはQuestionsインターフェースに関連するさまざまなメソッドを一覧にしており、WidgetRequestオブジェクトを通じてアクセス可能です。JS Dataパッケージをプロジェクトにインストールした後、これらのメソッドとそのドキュメントはIDE上で利用可能です。

/** questions */ getQuestions(): Questions; setQuestions(value: Questions): IWidgetItem; resetQuestions(): IWidgetItem; updateQuestions(value: Questions): IWidgetItem;

/** questions.exact_answer */ getQuestionsExactAnswer(): ExactAnswer; setQuestionsExactAnswer(value: ExactAnswer): IWidgetItem; resetQuestionsExactAnswer(): IWidgetItem; updateQuestionsExactAnswer(value: ExactAnswer): IWidgetItem;

/** questions.exact_answer.query_types */ getQuestionsExactAnswerQueryTypes(): string; setQuestionsExactAnswerQueryTypes(value: string): IWidgetItem; resetQuestionsExactAnswerQueryTypes(): IWidgetItem;

/** questions.keyphrase */ getQuestionsKeyphrase(): string; setQuestionsKeyphrase(value: string): IWidgetItem; resetQuestionsKeyphrase(): IWidgetItem;

/** questions.related_questions */ getQuestionsRelatedQuestions(): RelatedQuestions; setQuestionsRelatedQuestions(value: RelatedQuestions): IWidgetItem; resetQuestionsRelatedQuestions(): IWidgetItem; updateQuestionsRelatedQuestions(value: RelatedQuestions): IWidgetItem;

/** questions.related_questions.limit */ getQuestionsRelatedQuestionsLimit(): number; setQuestionsRelatedQuestionsLimit(value: number): IWidgetItem; resetQuestionsRelatedQuestionsLimit(): IWidgetItem;

/** questions.related_questions.offset */ getQuestionsRelatedQuestionsOffset(): number; setQuestionsRelatedQuestionsOffset(value: number): IWidgetItem; resetQuestionsRelatedQuestionsOffset(): IWidgetItem;

この記事を改善するための提案がある場合は、 お知らせください!