Learn how to configure your data feed in order to use faceted search in your search engine.
In order to use the faceted search you have to be aware of some tips you must follow on your data feed:
- If the value of the field which you are going to use for facets is unique for every product you don't have to do anything else. For instance, the
brandfield is usually one of these.
- If a product can have multiple values of a facet (for example color, size...), the values must be separated by the
/character, like this:
- If you want to include
/as part of the value (let's say you want to use
1/2ozas part of your possible values for a facet) just use another
/before it, like this:
1oz / 1//2oz / 1//4oz.
- If your feed has products grouped by categories and sub categories and you want to make filters with them, make sure that the categories are separated with the
>char, being the first category the most general. It would be a category tree like this:
Hardware > Hard Drives > SSD. Here, SSD is a subcategory inside Hard Drives which is also a subcategory of Hardware.
- You can also have multiple category trees for one product. Just separate them with
%%. An example
categoryfield would be this:
Hardware > Hard Drives > SSD %% Desktops > Peripherals > HDD.
Here is a one-item feed with proper values for facets:
id|title|price|brand|product_type|link|image_link|color|description 23|New hard drive|23.43|Acme|Hardware > Hard Drives > SSD|http://www.acme.com/23|http://www.acme.com/23.jpg|blue/red/green|It stores a lot of stuff