Magento 2: How to exclude/hide products from Search?
-
14-04-2021 - |
Question
I still want to be able to access to some products through the URL but exclude them from the Search bar
I am using elasticsearch7
Thank you in advance
EDIT:
Ideally, to do it programmatically
Solution
In admin product page, set the visibility attribute value to 'Catalog'.
-> You product will be accessible through category pages and direct url but not through search.
Other values of visibility attribute :
- Not Visible Individually : Only accessible through direct url
- Search : Only accessible through search and direct url
- Catalog, Search : Accessible through all ways
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange