<?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: Attributes in Lucene date range in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124498#M87607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently I think only date ranges can be searched - but that should cover your case.&lt;/SPAN&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;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2007 16:43:05 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2007-10-19T16:43:05Z</dc:date>
    <item>
      <title>Attributes in Lucene date range</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124497#M87606</link>
      <description>Hi,is it possible to use attributes and expressions in Lucene date range query? Using only cm:created and cm:modified attributes I need to fetch documents which have not been modified 15 days, f ex. Is it possible to do only with one Lucene query string?Thanks in advance.</description>
      <pubDate>Fri, 12 Oct 2007 15:24:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124497#M87606</guid>
      <dc:creator>erik_kirs</dc:creator>
      <dc:date>2007-10-12T15:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Attributes in Lucene date range</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124498#M87607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently I think only date ranges can be searched - but that should cover your case.&lt;/SPAN&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;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 16:43:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124498#M87607</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-10-19T16:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Attributes in Lucene date range</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124499#M87608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Full timestamp support will probably be available in the next community release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 09:35:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124499#M87608</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-10-23T09:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Attributes in Lucene date range</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124500#M87609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We're running "Version: Enterprise Network - v2.0.1" and ran across this as a problem.&amp;nbsp; We were looking for the ability to search between the times to items in our repository were originally published.&amp;nbsp;&amp;nbsp; It was a bit misleading at first that the Alfresco UI supports date/time in searches (and builds a corresponding date range when saving the search), and a little digging to find that a range of [2007-11-21T17:25:00 TO 2007-11-22T15:30:00] was reduced to [2007-11-21 TO 2007-11-22]. We ended up digging when we discovered that including the time zone (a necessary part of date ranges to us) caused a parsing exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy: to follow up with your most recent comment in this thread: this is a probable fix in an upcoming version?&amp;nbsp; I'm curious if there are any workarounds, or simple extensions points to the query parser to allow converting the time properties to timestamps (or other, more specific time formats) before passing them to lucene.&amp;nbsp; We looked at some of the parser code, but it all seemed to be JavaCC-built and not easily extensible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 20:41:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124500#M87609</guid>
      <dc:creator>daniel_robert</dc:creator>
      <dc:date>2007-11-26T20:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Attributes in Lucene date range</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124501#M87610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is possible to configure indexing to include time (and not just date as it does now) in later versions. It is not done by default as you would have to do full reindex.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The query side is not looking at timezones and is expecting queries in the correct time zone (that of the server).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is possible to fix this up in the LuceneQueryParser class which can be used to customize the JavaCC parse.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 11:32:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124501#M87610</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-12-10T11:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Attributes in Lucene date range</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124502#M87611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I discovered yesterday in the 2.1 release that a query with a datarange like "[2007-11-21 TO 2007-11-22]", does not parse anymore. It seems you have to include the time details, as instructed on this page : &lt;/SPAN&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;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a usefull class in alfresco-core which can easily parse this dateformat : ISO8601DateFormat.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I ended up with code like this :&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String sFromDate = ISO8601DateFormat.format(DATEFORMAT_yyyyMMdd.parse(request.getParameter(PARAM_FROM_EMISSION_DATE)));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String sToDate = ISO8601DateFormat.format(new Date());&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 08:09:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124502#M87611</guid>
      <dc:creator>kdejaeger</dc:creator>
      <dc:date>2008-04-17T08:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Attributes in Lucene date range</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124503#M87612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Andy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your Dec 10, 2007 post you state:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;———————————————————&lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;It is possible to configure indexing to include time (and not just date as it does now) in later versions.&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN&gt;———————————————————&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is great. Can you please provide a link or other hint as to the whereabouts of documentation on making this modification? We are running 2.1.3 enterprise.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 02:49:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124503#M87612</guid>
      <dc:creator>bpinnovators</dc:creator>
      <dc:date>2008-07-08T02:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Attributes in Lucene date range</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124504#M87613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In dataTypeAnalyzers.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you need to change&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;d_dictionary.datatype.d_datetime.analyzer=org.alfresco.repo.search.impl.lucene.analysis.DateAnalyser&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;d_dictionary.datatype.d_datetime.analyzer=org.alfresco.repo.search.impl.lucene.analysis.DateTimeAnalyser&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and rebuild your indexes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 13:44:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124504#M87613</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2008-07-10T13:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Attributes in Lucene date range</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124505#M87614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to incorporate a lucene Serach for docs in a specified location on a particular date range. I have used the following lucene query , but it throws up an error in the response file &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;500 Description: An error inside the HTTP server which prevented it from fulfilling the request.&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;Message: Error during processing of the template 'Expression resultset is undefined on line 7, column 8 in SearchDate.post.html.ftl.'. Please contact your system administrator.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;the controller file (lucene search)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var nodes = search.luceneSearch("date:\" [2008\-10\-30T00:00:00 TO 2008\-10\-30T00:00:00]);&lt;BR /&gt;model.resultset=nodes;&lt;SPAN class="line-numbers-rows"&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;the Response file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;html&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;body&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;img src="${url.context}/images/logo/AlfrescoLogo32.png" alt="Alfresco" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date Searched for : PUT THE DATES HERE&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;br&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;table&amp;gt;&lt;BR /&gt;&amp;lt;#list resultset as node&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;img src="${url.context}${node.icon16}"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;a href="${url.serviceContext}/api/node/content/${node.nodeRef.storeRef.protocol}/${node.nodeRef.storeRef.identifier}/${node.nodeRef.id}/${node.name?url}"&amp;gt;${node.name}&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;/#list&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/table&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;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;/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 10:44:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124505#M87614</guid>
      <dc:creator>abirb</dc:creator>
      <dc:date>2008-10-30T10:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Attributes in Lucene date range</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124506#M87615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a proper tie date, and i want to use lucene to find a day like this @cm\:modified:"2006-07-20"&amp;nbsp; but isn't working, I have tried this @cm\:modified:"2006-07-20T00:00:00.000Z" but doesn't work to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can only find a day using range query like this @cm\:modified:[2006-07-20T00:00:00.000 TO @cm\:modified:"2006-07-20T23:59:59.999]! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is correct??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 09:50:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124506#M87615</guid>
      <dc:creator>brunyan</dc:creator>
      <dc:date>2010-10-15T09:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Attributes in Lucene date range</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124507#M87616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using the datetime analyser then you have to use the range as you are matching the full date time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(ie. you have changed date time analysis)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use Alfresco out of the box - then only the date is put in the index (and time ignored) so the date only will work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 14:24:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attributes-in-lucene-date-range/m-p/124507#M87616</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2010-10-15T14:24:00Z</dc:date>
    </item>
  </channel>
</rss>

