Newer Version Available
CommerceSearchSettings Class
Get indexes. Get index logs. Create an index of a product catalog.
Namespace
CommerceSearchSettings Methods
These methods are for CommerceSearchSettings.
All methods are static.
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)
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.
Return Value
getCommerceSearchIndexLogs(webstoreId)
API Version
57.0
Requires Chatter
No
Signature
public static ConnectApi.CommerceSearchIndexLogCollection getCommerceSearchIndexLogs(String webstoreId)
Parameters
- webstoreId
- Type: String
- ID of the webstore.