Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Sites Class

Search an Experience Cloud site.

Namespace

ConnectApi

Sites Methods

These methods are for Sites. All methods are static.

searchSite(siteId, queryTerm, pageToken, pageSize, language)

Search an Experience Cloud site.

API Version

54.0

Available to Guest Users

54.0

Requires Chatter

No

Signature

public static ConnectApi.SiteSearchResult searchSite(String siteId, String queryTerm, String pageToken, Integer pageSize, String language)

Parameters

siteId
Type: String
ID for the Experience Cloud site.
queryTerm
Type: String
White-space separated words used to search for relevant content. Provide a maximum of 1024 characters, composed of up to 32 words and white spaces. Logical operators aren’t supported.
pageToken
Type: String
Specifies the base64 encoded page token. Page tokens are returned as part of the response. If unspecified, the first page is returned.
pageSize
Type: Integer
Specifies the number of items per page. Valid values are from 1 through 240. If you pass in null, the default size is 25.
language
Type: String
Language locale for the context user. If unspecified or if the specified language locale isn’t available, the default value is en_US.

Return Value

Type: ConnectApi.SiteSearchResult