<?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 Re: Move documents from very large folder in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/move-documents-from-very-large-folder/m-p/126396#M34406</link>
    <description>&lt;P&gt;So the answer is - there is no way to get the short part of a long children map.&lt;/P&gt;&lt;P&gt;Thanks, you saved my time! &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;&lt;/P&gt;&lt;P&gt;Will be digging from the documents properties side.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jan 2022 09:06:02 GMT</pubDate>
    <dc:creator>fedorow</dc:creator>
    <dc:date>2022-01-25T09:06:02Z</dc:date>
    <item>
      <title>Move documents from very large folder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/move-documents-from-very-large-folder/m-p/126394#M34404</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got a folder with tens of thousands of documents. Share doesn't show the content of this folder. Node browser can't show a list of children. It must be reorganised to make the folder useful. I'm looking for a way to get the children nodes of the folder on purpose to move them to the proper location. I tried javascript, CMIS, REST API. All ways have the same problem - timeout. Sometimes I can catch several children by javascript and move it. But it is not a stable solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which function/method/request can get one or several children without reading the whole children map?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 21:49:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/move-documents-from-very-large-folder/m-p/126394#M34404</guid>
      <dc:creator>fedorow</dc:creator>
      <dc:date>2022-01-24T21:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Move documents from very large folder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/move-documents-from-very-large-folder/m-p/126395#M34405</link>
      <description>&lt;P&gt;I guess you can find some pattern (based in the filename, date of modification...) so you can create a filter and get only a subset of files on every step inside a loop.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 08:27:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/move-documents-from-very-large-folder/m-p/126395#M34405</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2022-01-25T08:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Move documents from very large folder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/move-documents-from-very-large-folder/m-p/126396#M34406</link>
      <description>&lt;P&gt;So the answer is - there is no way to get the short part of a long children map.&lt;/P&gt;&lt;P&gt;Thanks, you saved my time! &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;&lt;/P&gt;&lt;P&gt;Will be digging from the documents properties side.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 09:06:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/move-documents-from-very-large-folder/m-p/126396#M34406</guid>
      <dc:creator>fedorow</dc:creator>
      <dc:date>2022-01-25T09:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Move documents from very large folder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/move-documents-from-very-large-folder/m-p/126397#M34407</link>
      <description>&lt;P&gt;The search query give me any quontity of children I want.&lt;/P&gt;&lt;P&gt;If longFolder is a node of my folder, next query give quick answer:&lt;/P&gt;&lt;PRE&gt;var query = "PATH:'" + longFolder.qnamePath + "/*' AND PARENT:'" + longFolder.nodeRef + "' AND TYPE:'cm:content'";
var searchQuery =	
{
	query: query,
	language: "fts-alfresco",
	page: {maxItems: 100}
};
var pack = search.query(searchQuery);

for each (var doc in pack){
	logger.log(doc.name + " \t" + doc.parent.id);&lt;BR /&gt;        //move doc to new place &lt;BR /&gt;        ...
}&lt;/PRE&gt;&lt;P&gt;Required quantity of nodes is given in maxItems.&lt;/P&gt;&lt;P&gt;Only one thing, after moving/organise documents, search need some time to find propper pack again. So I check parent relation every time before move.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 11:48:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/move-documents-from-very-large-folder/m-p/126397#M34407</guid>
      <dc:creator>fedorow</dc:creator>
      <dc:date>2022-01-25T11:48:26Z</dc:date>
    </item>
  </channel>
</rss>

