I would suggest that you pre-process your documents to include an attribute of the xs:gMonth datatype (just the month digits) and add a range index on this.
The the query is absolutely specific: *cts:element-attribute-query([your attribute], ">", 10)* Kind Regards, David Ennis David Ennis *Content Engineer* [image: HintTech] <http://www.hinttech.com/> Mastering the value of content creative | technology | content Delftechpark 37i 2628 XJ Delft The Netherlands T: +31 88 268 25 00 M: +31 63 091 72 80 [image: http://www.hinttech.com] <http://www.hinttech.com> <https://twitter.com/HintTech> <http://www.facebook.com/HintTech> <http://www.linkedin.com/company/HintTech> On 10 October 2014 18:08, Danny Sinang <[email protected]> wrote: > We have a "publicationDate" element in the form "YYYY-MM-DD". > > How do I issue a cts:element-range-query against it to list all documents > whose publicationDate month is greater than 10 ? > > > > Regards, > Danny > > > > > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > >
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
