I added a custom Media Image attribute. How can I make that searchable?
smile/elasticsuite 2.6.4
magento/product-community-edition 2.2.6
I can search in my_image
I found this code which says it switches the Image attribute to searchable, but actually sets is_searchable = 0 --- why is that?
Hello @amenk
Yes, we put the "image" to :
is_searchable : 0 . This prevent fulltext searching on this attribute (would have no sense to process a fulltext search on image name for most of merchants, it could probably add more noise than relevant results).
is_used_for_promo_rules : 1. It's kinda hacky, but attributes used for promo rules are indexed into the Elasticsearch index, and can be used to create virtual categories or optimizers rules.
Combination of these both parameters allow to have a field inside the index, but to not process fulltext search on it.
Regards
maybe that would make a good place in the function comment :-)
Most helpful comment
Hello @amenk
Yes, we put the "image" to :
is_searchable : 0 . This prevent fulltext searching on this attribute (would have no sense to process a fulltext search on image name for most of merchants, it could probably add more noise than relevant results).
is_used_for_promo_rules : 1. It's kinda hacky, but attributes used for promo rules are indexed into the Elasticsearch index, and can be used to create virtual categories or optimizers rules.
Combination of these both parameters allow to have a field inside the index, but to not process fulltext search on it.
Regards