AnsweredAssumed Answered

Help for query in lucene.

Question asked by joksy on Apr 27, 2009
Latest reply on May 5, 2009 by openpj
Hi guys,

I have some problem to do a query in lucene. My goal is to search for a specific custom-type which contains a date property, so the point is that I have to filter by this date. I see also some example but all of them are based on the
 @cm\\:created 

My query is below and the point is the part of query in the first +() make no change at all.
At the end my problem is to filter by date, but the date is a property of a custom-type.

<#if companyhome.childByNamePath["CompanyWorkSpace"]?exists>

   <#list companyhome.childrenByLuceneSearch["

         +(@\\{http\\://www.someco.com/model/content/1.0\\}mycustomtype.Start_Date:[2007-11-10 TO 2007-11-14])

         +(TYPE:\"rsi:mycustomtype\")
      
      PATH:\"/app:company_home/cm:CompanyWorkSpace//*\"
                        "] as doc>

Thanks a lot guys,

Best Regards.

Outcomes