AnsweredAssumed Answered

Multiple PATH in luceneSearch

Question asked by loic on Jul 23, 2009
Latest reply on Jul 27, 2009 by lista
Hi,

I'm wondering if it is possible to indicate multiple "PATH" in a lucene search

I have the following code in my freemarker template but it returns me nothing (it should !)

<#assign projet="${webproject}">
<#assign recherche="TEXT:*${searched}* OR QNAME:*${searched}* AND
PATH:\"www/avm_webapps/ROOT/contenu/actualites//*\" OR
PATH:\"www/avm_webapps/ROOT/contenu/communiques//*\" OR
PATH:\"www/avm_webapps/ROOT/contenu/infoperenne//*\"">

<#list avm.stores as store>
     <#if store.name=projet>
           <#list store.luceneSearch(recherche) as node>
                 ${node.path}
           </#list>
     </#if>
</#list>

I'm sure it's not a big deal but I can't find any clue in the wiki…

I'll appreciate if someone could help me :)

Outcomes