12-29-2017 04:47 AM
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
12-29-2017 05:00 AM
You are correct about the tags.
Below link will help you in how you can query tags.Check out the answer of Jeff.
12-29-2017 05:00 AM
12-29-2017 05:08 AM
It's working perfectly, thank you so much !
12-29-2017 05:55 AM
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.
12-29-2017 09:59 AM
Thank you, it's working too !
12-29-2017 02:49 PM
I prefer this way, and this is how I use it.
Explore our Alfresco products with the links below. Use labels to filter content by product module.