AEM 6.2 Search componet using tags | Community
Skip to main content
Level 2
Sep 1, 2016 5:57 AM UTC
Solved

AEM 6.2 Search componet using tags

Hi,

With the Search component, does anyone know how to filter the results via tags?

I have PDFs tagged as A and B - they are in the same folder location. Want only A to appear in the results.

thanks for any help

Michael

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
kautuk_sahni
kautuk_sahniAccepted solution
Employee
Sep 12, 2016 8:23 AM UTC

Hi 

Adding more reference for your help:-

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__1uiq-we_need_to_onlyallo.html

//Filtering Tag options for DAM Tag Metadata fields

 

Link:- http://stackoverflow.com/questions/18912037/search-pages-with-a-tag-in-cq5

//Search pages with a Tag 

 

I hope this will help you.

~kautuk

Kautuk Sahni

4 replies

Sep 18, 2017 2:03 PM UTC

Response from Adobe :

Tag search works on OR condition therefore when you select Tags, it does a search and basis OR condition it fetches all results where either of the tags match.  So, this is the designed behavior. If you need AND condition, you would need to customize it. 

If i add a new param 'group.property.and=true', its returning AND condition results.

Any thoughts on which file I have to customize to add this new param ?

Thanks for your help again.

Arun

http://localhost:4502/bin/querybuilder.json?

p.hitwriter=full

&p.nodedepth=4

&type=cq:Page

&path=/content/soni

&fulltext=

&orderby=path

&0_daterange.property=jcr:content/cq:lastModified

&0_daterange.lowerBound=

&0_daterange.upperBound=

&1_property=jcr:content/cq:template

&1_property.operation=like

&1_property.value=

&2_group.property.270_value=soni:multitag_tag_1

&2_group.property.271_value=soni:multitag_tag_2

&2_group.property.272_value=soni:multitag_tag_3

&2_group.property=jcr:content/cq:tags

&2_group.p.or=true

&2_group.property.and=true

&p.guessTotal=1000

&p.limit=15

&p.offset=0

Translate
smacdonald2008
Level 10
Sep 12, 2016 11:23 AM UTC

See this article that will point you in correct direction. https://helpx.adobe.com/experience-manager/using/customtags1.html.

Translate
kautuk_sahni
kautuk_sahniAccepted solution
Employee
Sep 12, 2016 8:23 AM UTC

Hi 

Adding more reference for your help:-

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__1uiq-we_need_to_onlyallo.html

//Filtering Tag options for DAM Tag Metadata fields

 

Link:- http://stackoverflow.com/questions/18912037/search-pages-with-a-tag-in-cq5

//Search pages with a Tag 

 

I hope this will help you.

~kautuk

Translate
Kautuk Sahni
Sham_HC
Level 10
Sep 1, 2016 6:47 PM UTC