<?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: Date range in lucene query in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/date-range-in-lucene-query/m-p/303442#M256572</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It seems the solution &lt;/SPAN&gt;&lt;A href="http://blogs.alfresco.com/wp/developer/2011/02/01/whats-in-a-date/" rel="nofollow noopener noreferrer"&gt;in this post&lt;/A&gt;&lt;SPAN&gt; only works after alfresco community 3.3. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your alfresco version is a little old,maybe upgrading to a newer version is a better solution.Since alfresco 4 you don't need any additional configuration,the solr search system by default uses the date time analyzer for d:datetime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Sep 2014 02:02:07 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2014-09-29T02:02:07Z</dc:date>
    <item>
      <title>Date range in lucene query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/date-range-in-lucene-query/m-p/303438#M256568</link>
      <description>Hi allI need to incorporate a lucene Serach for docs in a specified location on a particular date range (from fixed date to today less 1 hour). I have used the following lucene query but I get all the documents modified to the same moment as the query is executed.var today = new Date();//Start datev</description>
      <pubDate>Tue, 23 Sep 2014 17:48:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/date-range-in-lucene-query/m-p/303438#M256568</guid>
      <dc:creator>cperez</dc:creator>
      <dc:date>2014-09-23T17:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Date range in lucene query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/date-range-in-lucene-query/m-p/303439#M256569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to change date format to combined Date Time format &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations" rel="nofollow noopener noreferrer"&gt;http://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://stackoverflow.com/questions/5937017/how-to-convert-a-date-in-this-format-tue-jul-13-000000-cest-2010-to-a-java-d" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/5937017/how-to-convert-a-date-in-this-format-tue-jul-13-000000-cest-2010-to-a-java-d&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 06:53:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/date-range-in-lucene-query/m-p/303439#M256569</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2014-09-24T06:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date range in lucene query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/date-range-in-lucene-query/m-p/303440#M256570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, but I don't understand you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My range query is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;@cm:modified:["2010-00-01T00:00:00" TO "2014-09-24T10:00:00"]&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;But I get documents modified out of that range (for example,modified at 2014-09-24T11:35:00).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 12:40:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/date-range-in-lucene-query/m-p/303440#M256570</guid>
      <dc:creator>cperez</dc:creator>
      <dc:date>2014-09-24T12:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Date range in lucene query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/date-range-in-lucene-query/m-p/303441#M256571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I find in &lt;/SPAN&gt;&lt;A href="http://blogs.alfresco.com/wp/developer/2011/02/01/whats-in-a-date/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/developer/2011/02/01/whats-in-a-date/&lt;/A&gt;&lt;SPAN&gt; that by default the indexes only works with years, months and days. And is necesary to active hour and minutes to be indexed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this correct??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I search in my server that file "alfresco/model/dataTypeAnalyzers.properties", but that not exist because I have a document for each language (like " /opt/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/model/dataTypeAnalyzers_en.properties") and their content not include that line&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;"d_dictionary.datatype.d_datetime.analyzer=org.alfresco.repo.search.impl.lucene.analysis.DateTimeAnalyser"&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;I need to add that line to the file with the language I use and restart alfresco indexes??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;can you explain me how to do it in my Alfresco 3.0??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 13:00:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/date-range-in-lucene-query/m-p/303441#M256571</guid>
      <dc:creator>cperez</dc:creator>
      <dc:date>2014-09-24T13:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date range in lucene query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/date-range-in-lucene-query/m-p/303442#M256572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It seems the solution &lt;/SPAN&gt;&lt;A href="http://blogs.alfresco.com/wp/developer/2011/02/01/whats-in-a-date/" rel="nofollow noopener noreferrer"&gt;in this post&lt;/A&gt;&lt;SPAN&gt; only works after alfresco community 3.3. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your alfresco version is a little old,maybe upgrading to a newer version is a better solution.Since alfresco 4 you don't need any additional configuration,the solr search system by default uses the date time analyzer for d:datetime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 02:02:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/date-range-in-lucene-query/m-p/303442#M256572</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-09-29T02:02:07Z</dc:date>
    </item>
  </channel>
</rss>

