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
9
10
11
12
import algoliasearch.api.RecommendClient
import algoliasearch.config.*

val client = RecommendClient(appId = "ALGOLIA_APPLICATION_ID", apiKey = "ALGOLIA_API_KEY")

val response = Await.result(
  client.searchRecommendRules(
    indexName = "ALGOLIA_INDEX_NAME",
    model = RecommendModels.withName("related-products")
  ),
  Duration(100, "sec")
)
Did you find this page helpful?