Is it possible to add logic that assigns a value within algolia?


To clarify on what I mean. Lets say you have this top_product facet you can assign to products with either a true of false. But instead of me manually assigning if the product is a top product or not. I wonder if there is a way to automatically decide if the poduct is a top product or not through some logic that I can add. I wonder if thats possible with Algolia.

Any ideas?


Within search, this is typically achieved by assigning some sort of numeric rating to each record (popularity, ranking, sales, views, etc), and the using that as a ranking criteria for showing records.

If you don’t have a value like this in the records, you may be a good match for the new Trends model in Recommend – this uses machine learning models trained on conversion event data on your website to determine product popularity.