Tagging and Search | Community
Skip to main content
New Participant
November 9, 2015
Solved

Tagging and Search

  • November 9, 2015
  • 2 replies
  • 2860 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by JustinEd3

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

2 replies

JustinEd3Accepted solution
Employee
November 10, 2015

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

kautuk_sahni
Employee
November 10, 2015

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