cancel
Showing results for 
Search instead for 
Did you mean: 

Smartfolders - Json Query by specific tags

jcoupey
Confirmed Champ
Confirmed Champ

Hello everyone,

I'm using smartfolders, and it's really useful.

Nonetheless, i'd like to filter my query by putting only the pdf content which contains the tag "test", so I'm trying to put in the query :

"query" : "(PATH:'/app:company_home/st:sites//*') AND =cm:content.mimetype:application/pdf AND (=cm:modifier:%CURRENT_USER% OR =cm:creator:%CURRENT_USER%) AND =cm:taggable:test"

It's not working, i'm sure it's the cm:taggable:test that is not in the correct syntax.

Do you have an idea on the syntax in order to make the query correctly working ? 

Thank you so much !

Regards,

Joffrey

1 ACCEPTED ANSWER

krutik_jayswal
Elite Collaborator
Elite Collaborator

You are correct about the tags.

Below link will help you in how you can query tags.Check out the answer of Jeff.

 

View answer in original post

5 REPLIES 5

krutik_jayswal
Elite Collaborator
Elite Collaborator

You are correct about the tags.

Below link will help you in how you can query tags.Check out the answer of Jeff.

 

jcoupey
Confirmed Champ
Confirmed Champ

It's working perfectly, thank you so much !

cesarista
World-Class Innovator
World-Class Innovator

Hi:

TAG syntax is also possible:

{
   "id" : "16",
   "name" : "Tagged 'test'",
   "description" : "My tes files",
   "search" : {
       "language" : "fts-alfresco",
      "query" : "(PATH:'/app:company_home/st:sites//*') AND =cm:content.mimetype:application/pdf AND (=cm:modifier:%CURRENT_USER% OR =cm:creator:%CURRENT_USER%) AND TAG:'test'"
   }
}

Regards.

--C.

Thank you, it's working too ! Smiley Happy

douglascrp
World-Class Innovator
World-Class Innovator

I prefer this way, and this is how I use it.