I was assuming that you had stored dates as a separate field, but if you
haven't then I'm pretty sure range queries won't work.

Which begs the question whether you *should* store dates separately, but
only you can answer that <G>....

Erick

On 9/10/06, Luke Tan <[EMAIL PROTECTED]> wrote:

Hi,

Thanks for the previous explanation. I can't use Range Query as I need to
search something like
born in 200?
to find all that were born in 2001, 2002, ... 2006

Or do you think this will work
people:["born in 2001" TO "born in 2006"]

But it is much easier for the user to search
people:"born in 200?"

Kind Regards,
Luke

On 9/9/06, Erick Erickson <[EMAIL PROTECTED]> wrote:
>
> I've got to ask.... Why not just use a RangeQuery? Seems to be just what
> you
> want without the complications.....
>
> Best
> Erick
>
> On 9/8/06, Luke Tan <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > Can this be use to search year 2000, 2001, 2002, ... 2009?
> >
> > SpanFirstQuery snq = new SpanFirstQuery(new SpanRegexQuery(new
> > Term("year",
> > "200?")), 1);
> >
> >
> > I need to use it to search something like
> >
> > Who is born in 200?
> >
> > Thanks
> >
> >
>
>


Reply via email to