Introduction to Personalized Category Pages
An interesting way to use the Hello Retail search solution, is to use the API to create category pages. Especially for Search Professional & Search Enterprise customers, you can suddenly create fully personalized category pages. If you set this up as a Search Professional & Enterprise Search customer you will always, automatically, have the order of the results set by the preferences of the user. If the user likes the brand Nike and she is looking at a category page for Shoes, then we will push the Nike brand higher than other brands. This relevancy is fully customizable from the Search Engine settings inside the Hello Retail backend.
Note: Since we still track search analytics for category pages, you should create a new Search Configuration so the Category page analytics doesn’t pollute your regular search analytics.
The general idea is to do a search with the query “*” (which will give all results) and then filter by e.g. a hierarchy (category) or brand. If you want to see what properties you can filter by, then try a test search with the parameter “&return_fields=true”, which will return all the options you have.
There are two ways of doing this:
JavaScript SDK examples:
Example 1 - categories
Example 2 - brands
In the example below we are receiving the results for products in the filter "shoes -> running shoes -> Nike"
1"{search-config-key}", "*", { callback: function(products) { console.log(products)}, format:"json", filters:["hierarchies:shoes$running-shoes$nikequot;], return_filters:true })
In the example below we retrieve all products with the brand Loreal.
1"search-config-key", "*", { callback: function(products) { console.log(products)}, format:"json", filters:["brands:Loreal"], return_filters:true })
Last modified 1yr ago
Copy link