cancel
Showing results for 
Search instead for 
Did you mean: 

AVM store-specific searches

pyppe
Champ in-the-making
Champ in-the-making
Hi.

I've got a Web Script that searches for web-content from a specified AVM-store:


var store = avm.lookupStore(args.store);
var results = store.luceneSearch("@\\{http\\://www.alfresco.org/model/wcmappmodel/1.0\\}parentformname:\'nameOfTheWebForm\"");

Everything works as expected, when querying the staging sandbox (i.e., args.store = "webproject"). However, if I try to search from a user-specific sandbox (for example; args.store = "webproject–admin") results is an empty set. Why is that? How can search from a some user's sandbox?

Thanks!

- Pyppe
2 REPLIES 2

zaizi
Champ in-the-making
Champ in-the-making
Lucene based search is only available for the latest snapshot of the head revision for staging. It is not available for user sand boxes, workflow sand boxes etc.

See http://wiki.alfresco.com/wiki/WCM_Search.

mrogers
Star Contributor
Star Contributor
One preview mechanism that will allow search for Author sandboxes is Test Server Deployment.

On the wiki page above you can also see how to turn on indexing for author sandboxes but please note that only snapshotted content can be searched.    The author sandbox is snapshotted when content is submitted to staging or deployed so it might not work quite as you expect.