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.
CommerceSearchSettings Class
Namespace
CommerceSearchSettings Methods
createCommerceSearchIndex(webstoreId, indexBuildType)
API Version
57.0
Requires Chatter
Yes
Signature
public static ConnectApi.CommerceSearchIndex createCommerceSearchIndex(String webstoreId, String indexBuildType)
Parameters
- webstoreId
- Type: String
- ID of the webstore.
indexBuildType
Type: ConnectApi.CommerceSearchIndexBuildType
Build type of the index. Values are:
- Full
- Incremental
Return Value
Usage
This method creates a live index that replaces the current live index. Any indexes that are in progress are removed when you manually create an index with this method.
getCommerceSearchIndex(webstoreId, indexId)
API Version
52.0
Requires Chatter
Yes
Signature
public static ConnectApi.CommerceSearchIndex getSingleCommerceSearchIndex(String webstoreId, String indexId)
Parameters
- webstoreId
- Type: String
- ID of the webstore.
- indexId
- Type: String
- ID of the index.
Return Value
getCommerceSearchIndexes(webstoreId)
API Version
52.0
Requires Chatter
Yes
Signature
public static ConnectApi.CommerceSearchIndexCollection getCommerceSearchIndexes(String webstoreId)
Parameters
- webstoreId
- Type: String
- ID of the webstore.