Smartfolders - Json Query by specific tags

cancel
Showing results for 
Search instead for 
Did you mean: 
jcoupey
Active Member

Smartfolders - Json Query by specific tags

Jump to solution

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 Solution

Accepted Solutions
krutik_jayswal
Senior Member II

Re: Smartfolders - Json Query by specific tags

Jump to solution

You are correct about the tags.

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

 

View solution in original post

5 Replies
krutik_jayswal
Senior Member II

Re: Smartfolders - Json Query by specific tags

Jump to solution

You are correct about the tags.

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

 

jcoupey
Active Member

Re: Smartfolders - Json Query by specific tags

Jump to solution

It's working perfectly, thank you so much !

cesarista
Customer

Re: Smartfolders - Json Query by specific tags

Jump to solution

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.

jcoupey
Active Member

Re: Smartfolders - Json Query by specific tags

Jump to solution

Thank you, it's working too ! Smiley Happy

douglascrp
Advanced II

Re: Smartfolders - Json Query by specific tags

Jump to solution

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