> 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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to