You are here

tagSearch

tagSearch(store, tag) performs a search on a given tag in a given store.

The default store (SpacesStore) is used if null value is supplied.

Parameters

store
The store in which to search. The default is workspace://SpacesStore if null is provided for this parameter.
tag
The tag to search for. Any node with this tag will be returned as part of an array of nodes.

Returns

Returns an array of ScriptNode objects that represent the nodes within the store that have the given tag applied.

Examples

var store = "workspace://SpacesStore";
var tag = "mining";
var nodes = search.tagSearch(store, tag);
      

Returns nodes that have the tag "mining" applied to them.

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.