AnsweredAssumed Answered

Lucene search for properties through Freemarker templates

Question asked by alexp on Jun 30, 2006
Latest reply on Jul 19, 2006 by alexp
Hi there,

Hopefully a quick question about using Lucene to search for content within a template.

I am trying to find documents by searching only their assigned properties. For example, our content model provides a property called "Client". I need to find all content items which have a Client of "SampleClient".

Trying something like
companyhome.childrenByLuceneSearch["Client:SampleClient"]

does not return any results.

FYI, the whole template is the following and counts the number of documents returned. It works fine for simple text search:

<#assign x>
  <#list companyhome.childrenByLuceneSearch["TEXT:public"] as n>
    alex
  </#list>
</#assign>
Number of docs: ${x?word_list?size}

Many thanks for the help,
Alex

Outcomes