Expand my Community achievements bar.

SOLVED

Tagging and Search

Avatar

Level 5

How does searching based on tags work in AEM? Or in other words, how does tagging pages or assets bring them them up as results of a search operation - how is this implemented?

Was playing around with the foundation Search component and it seems searching with any tag (even container tags) forming part of the tagId would return pages associated with that tagID as a search result.

For e.g. if a page is tagged with tagID /etc/tags/tagNamespace/tagA/tabB/tagC, then doing a search with either 'tagA', tagB or tagC returns this page as a search result.

Is this search behavior likely to change if there's any change in the index configurations or the search platform itself is changed (e.g. using solr instead of lucene)?

Any insight here would be much appreciated. Thanks.

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi,

It depends upon how the query is formulated. If you run a full-text search (i.e. using the contains operator), then all keywords are searched, which in this case includes all of the path segements of the tagId. If you run a property search on the cq:tags property, then the exact property value would be matched.

Regards,

Justin

View solution in original post

2 Replies

Avatar

Administrator

Hi jake j 

I would ask one of our DAM engineer for this question, and would try to get back to you on this.

Some Reference article to read:-

Link:- http://www.connectcon.ch/content/dam/cqcon/Pr%C3%A4sentation_Marcel_Reutegger.pdf

Link:- https://docs.adobe.com/docs/en/aem/6-1/author/site-page-features/tags.html

Link:- https://docs.adobe.com/docs/en/aem/6-1/administer/content/tags.html

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Correct answer by
Employee

Hi,

It depends upon how the query is formulated. If you run a full-text search (i.e. using the contains operator), then all keywords are searched, which in this case includes all of the path segements of the tagId. If you run a property search on the cq:tags property, then the exact property value would be matched.

Regards,

Justin