: org.apache.lucene.queryParser.ParseException: Cannot parse 
'last_modified:-DAY': 
        ...
: Are they not supported as a short-cut for "NOW-1DAY"?  I'm using Solr 1.4.

No, "-1DAY" is a valid DateMath string (to the DateMathParser) but as a 
field value you must specify a valid date string, which can *end* with a 
DateMath string.  so "NOW-1DAY" is legal, as is 
"2011-02-22T12:34:56Z-1DAY"

Note also: you didn't do "-1DAY" you tried "-DAY" which isn't valid 
anywhere.


-Hoss

Reply via email to