Date Range predicate search problem
Hi,
I am trying to execute search using date range properties on a particular node, CQ5.5. I have created the XPATH query successfully and is given below:
//element(*, nt:hierarchyNode)
[
(jcr:contains(jcr:content/@sling:resourceType, 'mohegansun/components/page/eventpromotionsdetailpage') and
jcr:contains(jcr:content/event_par/event/@dropdown, 'promotion ')) and
(((@jcr:content/event_par/event/end >= xs:dateTime('2013-08-26T23:59:59.637Z')) or (@jcr:content/event_par/event/recurrence/rule/until >= xs:dateTime('2013-08-26T23:59:59.637Z'))))
]/rep:excerpt(.) order by jcr:content/event_par/event/@end
(predicate tree):
ROOT=group: limit=6, excerpt=true, offset=6[
{group=group: or=false, and=true[
{0_fulltext=fulltext: relPath=jcr:content/@sling:resourceType, fulltext=mohegansun/components/page/eventpromotionsdetailpage}
{1_fulltext=fulltext: relPath=jcr:content/event_par/event/@dropdown, fulltext=promotion }
]}
{type=type: type=nt:hierarchyNode}
{3_group=group: [
{group=group: or=true[
{1_path=path: path=/content/poconodowns/en/events-and-promotions/promotions}
]}
]}
{tags=tagid: tagid=null, property=jcr:content/cq:tags}
{orderby0=orderby: sort=asc, orderby=@jcr:content/event_par/event/end}
{6_group=group: [
{group=group: or=true[
{0_daterange=daterange: lowerBound=2013-08-26T23:59:59.637Z, property=jcr:content/event_par/event/end, lowerOperation=>=}
{1_daterange=daterange: lowerBound=2013-08-26T23:59:59.637Z, property=jcr:content/event_par/event/recurrence/rule/until, lowerOperation=>=}
]}
]}
]
When i am trying to run this query on CRXDE, its giving me correct results. Though if i run it from Query Debugger it doesn't give me any results only provide number of hits and same is the case with java code (QueryBuilder API).
Can anyone please point out what i am doing wrong here?
I have gone through http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/search/eval/DateRangePredicateEvaluator.html documentation but didnt fully understand its limitations (Does DateRange not support ORing of fields? or it cannot work with path filter predicate at all?)
Any pointers would be helpful.
Thanks!