<?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 Freemarker search performance in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-search-performance/m-p/72748#M47345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are multiple ways to find documents or list a directory in a FreeMarker template:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;#list companyhome.childByNamePath["Data Dictionary/Presentation Templates"].children as child&amp;gt;&lt;BR /&gt;&amp;lt;#list companyhome.childrenByXPath["*[@cm:name='Data Dictionary']/*[@cm:name='Space Templates']/*[@cm:name='Software Engineering Project']/*"] as child&amp;gt;&lt;BR /&gt;&amp;lt;#list companyhome.childrenByLuceneSearch["TEXT:alfresco"] as child&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Are there important differences concerning the search performance?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly I'm looking for a way to see if a folder contains documents in a FreeMarker template. Looping over all the documents and counting them to see if there are any seems silly and eats all my processing power.&amp;nbsp; Is there some better, more performant method to do this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Nov 2006 15:59:43 GMT</pubDate>
    <dc:creator>simon</dc:creator>
    <dc:date>2006-11-16T15:59:43Z</dc:date>
    <item>
      <title>Freemarker search performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-search-performance/m-p/72748#M47345</link>
      <description>There are multiple ways to find documents or list a directory in a FreeMarker template:&amp;lt;#list companyhome.childByNamePath["Data Dictionary/Presentation Templates"].children as child&amp;gt;&amp;lt;#list companyhome.childrenByXPath["*[@cm:name='Data Dictionary']/*[@cm:name='Space Templates']/*[@cm:name='S</description>
      <pubDate>Thu, 16 Nov 2006 15:59:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/freemarker-search-performance/m-p/72748#M47345</guid>
      <dc:creator>simon</dc:creator>
      <dc:date>2006-11-16T15:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Freemarker search performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/freemarker-search-performance/m-p/72749#M47346</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 general, lucene based queries will be faster but they do not support full XPATH like predicates etc. The XPath implementation uses saxon and a model built on top of the node service. I would prefer lucene and use xpath when this is not possible, or when I know the set is well constrained - ie will not consider all nodes in the repo ….)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could try folder.children.size&amp;nbsp;&amp;nbsp; or do you want to exclude folders?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 12:28:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/freemarker-search-performance/m-p/72749#M47346</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2006-11-29T12:28:24Z</dc:date>
    </item>
  </channel>
</rss>

