lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Goetz <br...@quiotix.com>
Subject Re: Bug? QueryParser may not correctly interpret RangeQuery text
Date Wed, 05 Jun 2002 07:20:51 GMT
> I guess from my perspective we are at
> 
> field:[<goop>-><goop>]
> 
> The delimiter is not yet defined, but the options currently discussed are
> -
> ->
> ;
> :
> |
> >
> 
> The problem with - and : is that they may be part of a date format.

How about " TO " as the delimiter?

> The action taken by the QueryParser would depend on the type of field we
> were using (if that were an easy change). For Date fields, it would convert
> the <goop> to a Date using the SimpleDateFormat and try to guess the format
> (I think it will handle the ISO 8601 formats).

Or, what about this: try to parse it as a date as above, using a
DateFormat.  If that fails, try to parse it as a number.  

I still want to see Date and Number fields supported as basic types in
the Field class, rather than "use a String in this magic date format".


--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message