<?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: Lucene query to find the 10 last modified nodes. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-to-find-the-10-last-modified-nodes/m-p/80918#M54071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://wiki.alfresco.com/wiki/Search" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Search&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Denis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2007 10:19:01 GMT</pubDate>
    <dc:creator>dhalupa</dc:creator>
    <dc:date>2007-07-19T10:19:01Z</dc:date>
    <item>
      <title>Lucene query to find the 10 last modified nodes.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-to-find-the-10-last-modified-nodes/m-p/80917#M54070</link>
      <description>Hi all,I need to make a lucene query to find an list of nodes, ordered by modified&amp;nbsp; DESC. I only want the first 10 records back. I am using javascript. This works:&amp;nbsp;&amp;nbsp;&amp;nbsp;model.nodes = search.luceneSearch("@cm\\:modified:[2007-01-17T00:00:00 TO 2007-08-05T00:00:00]");But I would like to do something like</description>
      <pubDate>Thu, 19 Jul 2007 09:58:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-to-find-the-10-last-modified-nodes/m-p/80917#M54070</guid>
      <dc:creator>jacqueswvdh</dc:creator>
      <dc:date>2007-07-19T09:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene query to find the 10 last modified nodes.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-to-find-the-10-last-modified-nodes/m-p/80918#M54071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://wiki.alfresco.com/wiki/Search" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Search&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Denis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 10:19:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-to-find-the-10-last-modified-nodes/m-p/80918#M54071</guid>
      <dc:creator>dhalupa</dc:creator>
      <dc:date>2007-07-19T10:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene query to find the 10 last modified nodes.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-to-find-the-10-last-modified-nodes/m-p/80919#M54072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found the answer. In the .ftl-file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#assign newsNodes = companyhome.childrenByLuceneSearch["TYPE:mn\\:newsItem"]?sort_by(["properties","modified"])?reverse &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am now looking for a way to limit the resultset to the last 10 modified nodes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, this can be done by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;#list newsNodes as newsNode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;#if newsNode_index &amp;lt; 10&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but I am sure it is more efficient to have lucen limit her output.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 13:47:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-to-find-the-10-last-modified-nodes/m-p/80919#M54072</guid>
      <dc:creator>jacqueswvdh</dc:creator>
      <dc:date>2007-07-24T13:47:09Z</dc:date>
    </item>
  </channel>
</rss>

