<?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: Need to move a node to a parent of a search result in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/need-to-move-a-node-to-a-parent-of-a-search-result/m-p/279311#M232441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are two documents being considered here:&amp;nbsp; the document which is being acted upon by this rule (i.e. document) and the document found by the lucene search (i.e. results&lt;/SPAN&gt;&lt;EM&gt;).&amp;nbsp; (Your suggestion about putting that into the search is a good one, by the way.)&amp;nbsp; I need to place document as a sibling of results&lt;EM&gt;, which is why I wanted to move it to results&lt;EM&gt;.parent.&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Aug 2013 12:09:27 GMT</pubDate>
    <dc:creator>srowsell</dc:creator>
    <dc:date>2013-08-21T12:09:27Z</dc:date>
    <item>
      <title>Need to move a node to a parent of a search result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-to-move-a-node-to-a-parent-of-a-search-result/m-p/279309#M232439</link>
      <description>I have a script in Share which looks like this:var contractID=document.properties["contract:contractID"];var results=search.luceneSearch("+PATH:\"/app:company_home/st:sites/cm:contract-management/cm:documentLibrary//*\" +TYPE:\"{duca.contracts.model}contract\"");if (contractID!=null){&amp;nbsp;&amp;nbsp;&amp;nbsp;for (var i=0</description>
      <pubDate>Tue, 20 Aug 2013 14:55:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-to-move-a-node-to-a-parent-of-a-search-result/m-p/279309#M232439</guid>
      <dc:creator>srowsell</dc:creator>
      <dc:date>2013-08-20T14:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need to move a node to a parent of a search result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-to-move-a-node-to-a-parent-of-a-search-result/m-p/279310#M232440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you need another parent in there. Ie. if you put a doc in doc.parent, it means you've placed it to where it already is. So you want to do a doc.move(doc.parent.parent);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or did I misunderstand something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another thing, why don't you combine this property right into your search?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ie. var res = search.luceneSearch(+PATH:\"/app:company_home/st:sites/cm:contract-management/cm:documentLibrary//*\" +TYPE:\"{duca.contracts.model}contract\" +@"contract:contractID\:\"contractID\"");&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 20:46:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-to-move-a-node-to-a-parent-of-a-search-result/m-p/279310#M232440</guid>
      <dc:creator>zladuric</dc:creator>
      <dc:date>2013-08-20T20:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need to move a node to a parent of a search result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-to-move-a-node-to-a-parent-of-a-search-result/m-p/279311#M232441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are two documents being considered here:&amp;nbsp; the document which is being acted upon by this rule (i.e. document) and the document found by the lucene search (i.e. results&lt;/SPAN&gt;&lt;EM&gt;).&amp;nbsp; (Your suggestion about putting that into the search is a good one, by the way.)&amp;nbsp; I need to place document as a sibling of results&lt;EM&gt;, which is why I wanted to move it to results&lt;EM&gt;.parent.&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 12:09:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-to-move-a-node-to-a-parent-of-a-search-result/m-p/279311#M232441</guid>
      <dc:creator>srowsell</dc:creator>
      <dc:date>2013-08-21T12:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need to move a node to a parent of a search result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-to-move-a-node-to-a-parent-of-a-search-result/m-p/279312#M232442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem has been fixed in the initial post.&amp;nbsp; It turns out that among my errors, these were causing my problems:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; I was using the wrong kind of rule – on file creation, rather than file update&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; I was using parentheses instead of brackets for the properties "if" condition&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&amp;nbsp; the query has to look more like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var results=search.luceneSearch("+PATH:\"/app:company_home/st:sites/cm:contract-management/cm:documentLibrary//*\" +TYPE:\"{duca.contracts.model}contract\"+@contract\\:contractID:\""+contractID+"\"");&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the suggestion was still useful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 13:06:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-to-move-a-node-to-a-parent-of-a-search-result/m-p/279312#M232442</guid>
      <dc:creator>srowsell</dc:creator>
      <dc:date>2013-08-23T13:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need to move a node to a parent of a search result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/need-to-move-a-node-to-a-parent-of-a-search-result/m-p/279313#M232443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No problem, keep up the good work &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;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 10:18:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/need-to-move-a-node-to-a-parent-of-a-search-result/m-p/279313#M232443</guid>
      <dc:creator>zladuric</dc:creator>
      <dc:date>2013-08-29T10:18:35Z</dc:date>
    </item>
  </channel>
</rss>

