Adobe cq5 query builder - get multiple properties within a date range -


i using queries search users based on property cq:lastmodified , jcr:created in specific date range query should return users has been last modified between daterange, if last modified property not present, should return jcr:created in date range.

please let me know how can done

in debugger, use this, please find path below. want or instead of and

path = /home/users type=rep:user  1_daterange.property=jcr:created 1_daterange.lowerbound=2014-08-18 1_daterange.upperbound=2014-08-19  2_daterange.property=cq:lastmodified 2_daterange.lowerbound=2014-08-18 2_daterange.upperbound=2014-08-19    /jcr:root/home/users//element(*, rep:user) [ (@jcr:created > xs:datetime('2014-08-18t00:00:00.000+05:30') , @jcr:created < xs:datetime('2014-08-19t00:00:00.000+05:30'))  ***and*** (@cq:lastmodified > xs:datetime('2014-08-18t00:00:00.000+05:30') , @cq:lastmodified < xs:datetime('2014-08-19t00:00:00.000+05:30'))  ] 

the 'and' in bold should 'or'

please help

use groups search multiple properties , group.p.or specify or condition

path=/home/users type=rep:user  group.1_daterange.property=jcr:created group.1_daterange.lowerbound=2014-08-18 group.1_daterange.upperbound=2014-08-19  group.2_daterange.property=cq:lastmodified group.2_daterange.lowerbound=2014-08-18 group.2_daterange.upperbound=2014-08-19  group.p.or=true 

from query builder api, p in p.or special delimiter indicating follows (in case or) parameter of group, opposed subpredicate of group, such 1_daterange.

if no p.or given predicates anded together.

to know more querying, refer this docs page.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -