lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Kemkes <a5s...@yahoo.com>
Subject Date Math
Date Fri, 18 Feb 2011 01:09:57 GMT
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.


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message