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

Reply via email to