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
using Algolia.Search.Clients;
using Algolia.Search.Http;
using Algolia.Search.Models.Recommend;

var client = new RecommendClient(
  new RecommendConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
);

var response = await client.SearchRecommendRulesAsync(
  "ALGOLIA_INDEX_NAME",
  Enum.Parse<RecommendModels>("RelatedProducts")
);
Did you find this page helpful?