Duuh! Stupid me. I didn't even try that. Thanks for such a quick replay. That
should solve my problem..Thanks Hoss!!


Chris Hostetter wrote:
> 
> 
> the square brackets raen't anything new ... they are the standard Lucene
> QUeryParser syntax for range queries, which have hte syntax...
>       field:[low TO high]
> 
> in conjuntion with the new DateMath, you need something along the lines
> of...
>       timestamp:[NOW/DAY-1MONTH TO NOW/DAY+1DAY]
> 
> ...assuming your goal is to find timestamps in the past month.
> 
> i used NOW/DAY+1DAY as the upper bound instead of NOW so it will have the
> same day granularity as the lower bound (good for caching) and won't miss
> things added today.
> 
> : Recently I discovered the 'new' DateField syntax options which allow
> : "[NOW/DAY-1MONTH]" type querys. However when going to try out this I
> found a
> : possible bug (or maybe I'm just missing something) when using it in
> junction
> : with the DisMaxRequestHandler. Can anyone point me in the right
> direction or
> : confirm it's a bug for me. Below is the error.
> :
> : Currently I'm speficing a fq query like so:
> :
> : fq=timestamp:[NOW/DAY-1MONTH]
> 
> 
> 
> 
> 
> -Hoss
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Solr-DisMax-and-%27New%27-DateField-query-syntax-tf3256448.html#a9053873
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to