As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
There are tagging web scripts that you may also like to take a look at.
Or you can add your own Web Services into Alfresco. That delegate to the Java or Java Script Interfaces.AFAIK tagging is not yet exposed on the Web Services, however I'm fairly sure Search is and there is a new CMIS search interface which is exposed via Web Services so that should give you the search functionality you need.