jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christophe Lombart <christophe.lomb...@gmail.com>
Subject Search on date properties
Date Tue, 27 Sep 2005 18:39:37 GMT
I'm looking for some search examples based on dates.

Is it a correct search expression : //element(*, nt:unstructured)
[@calendar <=  TIMESTAMP '2005-09-27T00:00:00.000+01:00']

I got the following exception whih this expression :

javax.jcr.query.InvalidQueryException: Encountered
"\'2005-09-27T00:00:00.000+01:00\'" at line 1, column 66.
Was expecting one of:
    "or" ...
    "and" ...
    "div" ...
    "idiv" ...
    "mod" ...
    "*" ...
    "to" ...
    "intersect" ...
    "union" ...
    "except" ...
    <Instanceof> ...
    <Castable> ...
    "/" ...
    "//" ...
    "-" ...
    "+" ...
    "|" ...
    "[" ...
    "]" ...
    <CastAs> ...
    <TreatAs> ...
    "," ...


Are there other ways to build queries on date properties ?

Thanks,
Christophe

Mime
View raw message