<?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 Lucene or XPath search using date in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/lucene-or-xpath-search-using-date/m-p/252212#M205342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to write a JavaScript code that returns all documents of some folder that was created 10 days ago.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried using Lucene Search for exemple:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var nodes = search.luceneSearch("@created:2012-06-05"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know this query just returns things of this day, but how to get just the ones of 10 days ago;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another problem is this query return results of all repository, I saw that I can pass a store path on this search, but how is a path of the current store that I'm executing this javascript?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks guys!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2012 22:48:06 GMT</pubDate>
    <dc:creator>ltardioli</dc:creator>
    <dc:date>2012-06-05T22:48:06Z</dc:date>
    <item>
      <title>Lucene or XPath search using date</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-or-xpath-search-using-date/m-p/252212#M205342</link>
      <description>Hello guys,I'm trying to write a JavaScript code that returns all documents of some folder that was created 10 days ago.I tried using Lucene Search for exemple:var nodes = search.luceneSearch("@created:2012-06-05"); I know this query just returns things of this day, but how to get just the ones of 1</description>
      <pubDate>Tue, 05 Jun 2012 22:48:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-or-xpath-search-using-date/m-p/252212#M205342</guid>
      <dc:creator>ltardioli</dc:creator>
      <dc:date>2012-06-05T22:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene or XPath search using date</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-or-xpath-search-using-date/m-p/252213#M205343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The syntax query is wrong… Check &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Search#Finding_nodes_by_date_and_time_property_values" rel="nofollow noopener noreferrer"&gt;alfresco wiki page for search&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your code should look like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var nodes = search.luceneSearch("@cm\:created:2012-06-05"); &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;SPAN&gt;You'll need to do some dynamic thing to get the date for 10 days before and use a &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Search#Date_ranges" rel="nofollow noopener noreferrer"&gt;range query&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var nodes = search.luceneSearch("@cm\:created:[2012\-06\-05T00:00:00 TO NOW]"); &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;SPAN&gt;Adei&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 12:53:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-or-xpath-search-using-date/m-p/252213#M205343</guid>
      <dc:creator>amandaluniz_z</dc:creator>
      <dc:date>2012-06-06T12:53:10Z</dc:date>
    </item>
  </channel>
</rss>

