Expand my Community achievements bar.

SOLVED

AEM 6.2 Search componet using tags

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi 

Adding more reference for your help:-

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

//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

View solution in original post

4 Replies

Avatar

Correct answer by
Administrator

Hi 

Adding more reference for your help:-

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

//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

Avatar

Former Community Member

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