AnsweredAssumed Answered

Run action on entire repository

Question asked by boutch55555 on Oct 2, 2010
Latest reply on Oct 3, 2010 by savic.prvoslav
Hi

I imported lots of docs in my instance without activating the versioning as a rule for all new items. Is there a way to add it recursively for all the content with the javascript API ?
I know that I can use the
doc.addAspect("cm:versionable");
but I can't find the lucene query that will give me all the documents form the repository.
I tried
var docs = search.luceneSearch("TEXT:*");
but it doesn't work :
(from catalina.out)
Caused by: org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 10000

any ideas on how to archieve this ?

Thanks

Outcomes