The SolrQuerySyntax Wiki page refers to DateMathParser for examples.

When I tried "-1DAY", I got:

org.apache.lucene.queryParser.ParseException: Cannot parse 
'last_modified:-DAY': 
Encountered " "-" "- "" at line 1, column 14.
Was expecting one of:     "(" ...     "*" ...     <QUOTED> ...     <TERM> ...   
  
<PREFIXTERM> ...     <WILDTERM> ...     "[" ...     "{" ...     <NUMBER> ... 

Are they not supported as a short-cut for "NOW-1DAY"?  I'm using Solr 1.4.


      

Reply via email to