AnsweredAssumed Answered

Freemarker search performance

Question asked by simon on Nov 16, 2006
Latest reply on Nov 29, 2006 by andy
There are multiple ways to find documents or list a directory in a FreeMarker template:
<#list companyhome.childByNamePath["Data Dictionary/Presentation Templates"].children as child>
<#list companyhome.childrenByXPath["*[@cm:name='Data Dictionary']/*[@cm:name='Space Templates']/*[@cm:name='Software Engineering Project']/*"] as child>
<#list companyhome.childrenByLuceneSearch["TEXT:alfresco"] as child>
Are there important differences concerning the search performance?

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.  Is there some better, more performant method to do this?