1. Interfaces

PinItem

Version:
TypeInterface
Import path@sitecore-cloudsdk/search/browser

Pin rules for a search request. Used to force a single item or category to appear in a specific slot even if it is not in the natural results set for a request.

To force a list of items or categories to appear in fixed slots, use Include.

Signature

interface PinItem {
  id: string;
  slot: number;
}

Properties

NameTypeDescriptionValue
idstringRequired.

The ID of the item to pin.
N/A
slotintegerRequired.

A position in a list of search results to which you can apply pin, include, or boost rules.
4
If you have suggestions for improving this article, let us know!