<?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: Alfresco Lucene Search Sort by Date Issue in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-lucene-search-sort-by-date-issue/m-p/274183#M227313</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;SPAN&gt;try to check "webapps/alfresco/WEB-INF/classes/alfresco/model/dataTypeAnalyzers.properties" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if the analyzer for datetime (cm:created/cm:modified) is set to DateAnalyzer change it 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;That will solve the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2012 09:16:24 GMT</pubDate>
    <dc:creator>simonefresco</dc:creator>
    <dc:date>2012-03-09T09:16:24Z</dc:date>
    <item>
      <title>Alfresco Lucene Search Sort by Date Issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-lucene-search-sort-by-date-issue/m-p/274180#M227310</link>
      <description>We are building a webapp using Alfresco Surf, and are using a Lucene search to return results from the database.&amp;nbsp; All the searches work fine with out sorting functionality except date.&amp;nbsp; When we sort by modified date or created date then the first 3 pages are returned correctly (10 results per page a</description>
      <pubDate>Tue, 20 Sep 2011 16:00:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-lucene-search-sort-by-date-issue/m-p/274180#M227310</guid>
      <dc:creator>jboss</dc:creator>
      <dc:date>2011-09-20T16:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Lucene Search Sort by Date Issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-lucene-search-sort-by-date-issue/m-p/274181#M227311</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;Can you please post the query/language etc … and the results from the full search so there is some related test data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It could be that datetime is only indexed to the date resolution and so does a post sort in Java.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If could be this and paging is confused somethow - but the sort should be done before any paging etc is applied&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can configure in fuill date time resolution - and reindex -&amp;nbsp; then the sort will be all in lucene (if we change the default everyone has to reindex)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can wait for 4.0 and use SOLR which is configured to use full datetime out of the box (you have to build the SOLR index anyway)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SOLR paging is much more efficient as it keeps a few more results around in the query cache for this small number paging use case.&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, 22 Sep 2011 09:25:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-lucene-search-sort-by-date-issue/m-p/274181#M227311</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2011-09-22T09:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Lucene Search Sort by Date Issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-lucene-search-sort-by-date-issue/m-p/274182#M227312</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;Thanks for the quick response.&amp;nbsp; I'll work on getting you the actual queries and response data so you have some more information to work with.&amp;nbsp; I did want to clarify that we are using Lucene sorting by passing in criteria like cm:modified to the sort parameter of the query.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On another note, I did want to look at trying to configure date/time resolution in the DB and reindexing, how would I go about that process?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help, Jon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 15:00:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-lucene-search-sort-by-date-issue/m-p/274182#M227312</guid>
      <dc:creator>jboss</dc:creator>
      <dc:date>2011-09-22T15:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Lucene Search Sort by Date Issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-lucene-search-sort-by-date-issue/m-p/274183#M227313</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;SPAN&gt;try to check "webapps/alfresco/WEB-INF/classes/alfresco/model/dataTypeAnalyzers.properties" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if the analyzer for datetime (cm:created/cm:modified) is set to DateAnalyzer change it 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;That will solve the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 09:16:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-lucene-search-sort-by-date-issue/m-p/274183#M227313</guid>
      <dc:creator>simonefresco</dc:creator>
      <dc:date>2012-03-09T09:16:24Z</dc:date>
    </item>
  </channel>
</rss>

