Product tags are useful when it comes to tagging your products so they are searchable if a tag is entered as a search criteria. Tags leverage Elasticsearch capabilities so ES must be enabled on the site.
This guidance assumes that your web store has Elasticsearch on Search enabled. If you’re not sure if the setting is enabled, please contact us, and we’ll be happy to help!
In you admin dashboard, navigate to Catalog > Product Settings > Tag Manager.
Click Add New Tag and enter details for a new tag. Click Save to apply your changes.
For bulk creation and assignment of tags, click Tools on View Tags screen and select any of the following options:
- Export Assignments Tag data – To export products that have tags assigned.
- Import Assignments Tag data – To bulk assign tags to products.
- Export Tag data – To export all tags.
- Import Tag data – To create tags in bulk.
Assign tags to products
To assign tags to products, navigate to Catalog > Products. Click Edit for a product.
Under General tab, scroll down and locate Tags field.
Start typing the tag name to select an appropriate one from the suggestions list.
Click Apply to save your changes.
Modify Elasticsearch configuration
Navigate to Catalog > Product Settings > Elasticsearch.
Under Search Configuration tab, toggle on buttons for product – visibleTags if you have created visible tags or product – hiddenTags if you have created hidden tags.
The difference between Visible and Hidden tags is their appearance in the search results. See section How it appears on the frontend to know more.
Also, give a sufficient boosting number so products can appear if tags are searched for.
Now, it’s time to view the results on the frontend. But before that, don’t forget to reindex the site.
On the same screen, under Scope and Reindex tab, scroll down and click Reindex button.
How it appears on the frontend
When a tag is searched, the system will show all those products that are associated with it.
If a tag is made visible, then it will also appear along with search results unlike hidden tags which only show the associated products.