Retrieve a rule

Retrieves a Recommend rule that you previously created in the Algolia dashboard.

Usage

Required ACL: settings
1
2
3
4
5
6
import com.algolia.api.RecommendClient;
import com.algolia.config.*;

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

client.getRecommendRule("ALGOLIA_INDEX_NAME", RecommendModels.RELATED_PRODUCTS, "objectID");
Did you find this page helpful?