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
import algoliasearch.api.RecommendClient
import algoliasearch.config.*

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

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