<?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: script to seach in a specific space in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/script-to-seach-in-a-specific-space/m-p/180613#M133743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's perfect!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm glad I helped you &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, 03 Apr 2014 11:44:20 GMT</pubDate>
    <dc:creator>cybermakoki</dc:creator>
    <dc:date>2014-04-03T11:44:20Z</dc:date>
    <item>
      <title>script to seach in a specific space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/script-to-seach-in-a-specific-space/m-p/180610#M133740</link>
      <description>I'm makin a script to get all the objects in a specific space (called "Aprobados") where the created or last modified date is today. And I also want to get all metadata from the searchrd objects.Can anyone help me please?Let me explain you the process I need to execute1) Search for all the pdf docum</description>
      <pubDate>Wed, 02 Apr 2014 15:34:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/script-to-seach-in-a-specific-space/m-p/180610#M133740</guid>
      <dc:creator>cperez</dc:creator>
      <dc:date>2014-04-02T15:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: script to seach in a specific space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/script-to-seach-in-a-specific-space/m-p/180611#M133741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi cperez,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The best way to do this is to use lucene or xpath search, because it allows you to search recursively in the child nodes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It should be something like this using lucene search:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; var docs = search.luceneSearch("PATH:'app:company_home/cm:Revisar/cm:Aprobados//.' AND&amp;nbsp; @cm\\:modified:[NOW TO MAX]");&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;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here you have more information about range queries:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Search#Range_Queries" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Search#Range_Queries&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.alfresco.com/forum/developer-discussions/web-scripts/lucene-search-date-range-created-modified-not-working" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/forum/developer-discussions/web-scripts/lucene-search-date-range-created-modified-not-working&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://forums.alfresco.com/forum/developer-discussions/repository-services/attributes-lucene-date-range-10122007-1524" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/forum/developer-discussions/repository-services/attributes-lucene-date-range-10122007-1524&lt;/A&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 10:50:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/script-to-seach-in-a-specific-space/m-p/180611#M133741</guid>
      <dc:creator>cybermakoki</dc:creator>
      <dc:date>2014-04-03T10:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: script to seach in a specific space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/script-to-seach-in-a-specific-space/m-p/180612#M133742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi cybermakoki,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed the search and I use the luceneSearch like you said.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the dinamic path from a specific folder instead of a static path, the range date search to get all the documents today, and I also search only pdf documents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the code that I use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var sdate=today.getFullYear()+"\-"+(today.getMonth()+1)+"\-"+today.getDate() + "T00:00:00";&lt;BR /&gt;var tdate=today.getFullYear()+"\-"+(today.getMonth()+1)+"\-"+(today.getDate()+1) + "T00:00:00";&lt;BR /&gt;var spath="'+PATH:\""+aprobados.displayPath +"//*\" + ";&lt;BR /&gt;var scontent="@\\{http\\://&lt;A href="http://www.alfresco.org/model/content/1.0\\}content.mimetype:application/pdf" rel="nofollow noopener noreferrer"&gt;www.alfresco.org/model/content/1.0\\}content.mimetype:application/pdf&lt;/A&gt; + ";&lt;BR /&gt;var qdate="@cm\\:modified:[" + sdate + " TO " + tdate +"]'";&lt;BR /&gt;var strq=spath+scontent+qdate;&lt;BR /&gt;&lt;BR /&gt;// Do the search and save the vales&lt;BR /&gt;var nodes=search.luceneSearch(strq);&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;BR /&gt;&lt;SPAN&gt;thank you so much.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 11:27:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/script-to-seach-in-a-specific-space/m-p/180612#M133742</guid>
      <dc:creator>cperez</dc:creator>
      <dc:date>2014-04-03T11:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: script to seach in a specific space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/script-to-seach-in-a-specific-space/m-p/180613#M133743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's perfect!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm glad I helped you &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, 03 Apr 2014 11:44:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/script-to-seach-in-a-specific-space/m-p/180613#M133743</guid>
      <dc:creator>cybermakoki</dc:creator>
      <dc:date>2014-04-03T11:44:20Z</dc:date>
    </item>
  </channel>
</rss>

