Magento 2 type_id as facet

How do you select the product type_id as a facet under the Magento 2 Algolia Extension. The dropdown under “Facets” in the Instant Search Results Page does not list the type_id as a valid product attribute.


Hi @dterzano,

The facets are pulling the attributes retrieved by this function:

type_id is not included in this unfortunately. If you need to add this attribute as a facet, you will need to use the backend event: algolia_products_index_before_set_settings

See this documentation for more on how to modify settings:

Thank you very much Betty. I will give that a shot. I wasn’t sure which of the events was the correct one to observe for that override.