Search for rules

Searches for Recommend rules.

Use an empty query to list all rules for this recommendation scenario.

Usage

Required ACL: settings
1
2
3
4
5
6
7
8
import Recommend

let client = try RecommendClient(appID: "ALGOLIA_APPLICATION_ID", apiKey: "ALGOLIA_API_KEY")

let response = try await client.searchRecommendRules(
    indexName: "ALGOLIA_INDEX_NAME",
    model: RecommendModels.relatedProducts
)
Did you find this page helpful?