1. Search開発者

Facet interface

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

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

Sitecore Searchでは、コンテンツをfacetsで表示できます。ファセットは、属性値に基づいてカテゴリを作成する動的検索インターフェイス コンポーネントです。facetsを使用すると、ユーザーはカテゴリを使用して検索結果を簡単にフィルタリングできます。

Facet interface

名前

種類

形容

all

ブーリアン

すべてのファセットタイプを要求します。

max

ファセットタイプの最大数。

sort

ファセットソート

並べ替え順序が要求されました。

types

Array<FacetType>

ファセットタイプのリスト。

FacetSort interface

名前

種類

形容

name

アルファベット順または数字順にソートされたタイプ。

textまたはcount

order

昇順または降順の並べ替え。

ascまたはdesc

FacetType interface

名前

種類

形容

after

リスト内の以前のファセットタイプの名前。

exclude

Array<string>

除外するファセット型の名前。

filter

ファセットタイプフィルター

FacetTypeFilterOr又は FacetTypeFilterAnd

filtering_options

Array<FacetTypeFilteringOptions>

FacetTypeFilteringOptions列挙子値の一覧。

FacetTypeFilteringOptions.HARD_FILTERSFacetTypeFilteringOptions.OTHER_FACET_VALUES、および FacetTypeFilteringOptions.OWN_VALUES

keyphrase

検索するフレーズ。

max

返すファセット型の最大数。

min_count

返すファセットタイプの最小数。

name

ファセット型の名前。

sort

Array<Sort>

ファセットタイプの並べ替えオプションのリスト。

Sort interface

名前

種類

形容

choices

ブーリアン

応答内のすべての並べ替えオプションのリストを要求するフラグ。

true又は false

value

ソートアイテム

アイテムの並べ替え方法を記述するObject。

SortItem interface

名前

種類

形容

name

アルファベット順または数字順にソートされたタイプ。

textまたはcount

order

昇順または降順の並べ替え。

ascまたはdesc

メモ

特に指定しない限り、すべての値はオプションです。

次のコード ブロックは、facetsに関連するさまざまなメソッドをリストし、WidgetRequestオブジェクトからアクセスできます。JS Dataパッケージをプロジェクトにインストールすると、これらのメソッドとそのドキュメントがIDEで使用できるようになります。

/** search.facet */
getSearchFacet(): Facet;
setSearchFacet(value: Facet): IWidgetItem;
resetSearchFacet(): IWidgetItem;
updateSearchFacet(value: Facet): IWidgetItem;

/** search.facet.all */
getSearchFacetAll(): boolean;
setSearchFacetAll(value: boolean): IWidgetItem;
resetSearchFacetAll(): IWidgetItem;

/** search.facet.max */
getSearchFacetMax(): number;
setSearchFacetMax(value: number): IWidgetItem;
resetSearchFacetMax(): IWidgetItem;

/** search.facet.sort */
getSearchFacetSort(): FacetSort;
setSearchFacetSort(value: FacetSort): IWidgetItem;
resetSearchFacetSort(): IWidgetItem;
updateSearchFacetSort(value: FacetSort): IWidgetItem;

/** search.facet.sort.name */
getSearchFacetSortName(): string;
setSearchFacetSortName(value: string): IWidgetItem;
resetSearchFacetSortName(): IWidgetItem;

/** search.facet.sort.order */
getSearchFacetSortOrder(): string;
setSearchFacetSortOrder(value: string): IWidgetItem;
resetSearchFacetSortOrder(): IWidgetItem;

/** search.facet.types */
getSearchFacetTypes(): Array<FacetType>;
setSearchFacetTypes(value: Array<FacetType>): IWidgetItem;
resetSearchFacetTypes(): IWidgetItem;
addSearchFacetType(value: FacetType): IWidgetItem;
removeSearchFacetType(value: FacetType, filter?: (v: any) => boolean): IWidgetItem;
この記事を改善するための提案がある場合は、 お知らせください!