Hi
Greetings of the day!
Currently, I have facing one issue regarding tagging.
I want to get List of noderef form tag name from the particular folder(Ex. SiteName/documentLibrary/test).
I am using this method of tagging service
taggingService().findTaggedNodes()
It works fine but, it works on Lucene query. So a couple of time I didn't get updated result.
So someone please help on this issue, or Explain to me how tag store in alfresco.
Thanks in advance.
Solved! Go to Solution.
Tags are stored as category nodes in Alfresco. When a node is tagged with a text value, the text value is actually resolved to a category node - if none exists, one is created - and then stored in a property of type d:noderef on the tagged node. The convenience that TaggingService provides is based completely on the text-based search functionality that the index provides and you will never be able to find a tagged node immediately after applying a tag, since the index is only eventually consistent. You'd need to execute transactional metadata queries (TMQ) written by yourself to resolve tags and tagged nodes without relying on the index.
Tags are stored as category nodes in Alfresco. When a node is tagged with a text value, the text value is actually resolved to a category node - if none exists, one is created - and then stored in a property of type d:noderef on the tagged node. The convenience that TaggingService provides is based completely on the text-based search functionality that the index provides and you will never be able to find a tagged node immediately after applying a tag, since the index is only eventually consistent. You'd need to execute transactional metadata queries (TMQ) written by yourself to resolve tags and tagged nodes without relying on the index.
Hi Axel Faust
Thank you for replay.
I search for that tag TMQ but I can't get proper solutions,
So can you please provide me that
Thank you.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.