<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Run action on entire repository in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/run-action-on-entire-repository/m-p/227733#M180863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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 ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that I can use the &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;doc.addAspect("cm:versionable");&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; but I can't find the lucene query that will give me all the documents form the repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var docs = search.luceneSearch("TEXT:*");&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;but it doesn't work :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(from catalina.out)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Caused by: org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 10000&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;any ideas on how to archieve this ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Oct 2010 15:17:54 GMT</pubDate>
    <dc:creator>boutch55555</dc:creator>
    <dc:date>2010-10-02T15:17:54Z</dc:date>
    <item>
      <title>Run action on entire repository</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/run-action-on-entire-repository/m-p/227733#M180863</link>
      <description>HiI 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 al</description>
      <pubDate>Sat, 02 Oct 2010 15:17:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/run-action-on-entire-repository/m-p/227733#M180863</guid>
      <dc:creator>boutch55555</dc:creator>
      <dc:date>2010-10-02T15:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Run action on entire repository</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/run-action-on-entire-repository/m-p/227734#M180864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi, you can create action to divide search using system divide and conquer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can do is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; list all spaces&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; for each space do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list all files inside that space&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each file do what you have to do&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so probably you do not have 10000&amp;nbsp; spaces &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; if you do then split it with root spaces first and then apply the system .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hope it helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Oct 2010 12:05:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/run-action-on-entire-repository/m-p/227734#M180864</guid>
      <dc:creator>savic_prvoslav</dc:creator>
      <dc:date>2010-10-03T12:05:13Z</dc:date>
    </item>
  </channel>
</rss>

