RE: Using Range Queries

2006-02-08 Thread Koji Sekiguchi
> I guess is that somehow the code is not taking my range as numerals but is > probably doing string compare. Right. We should treat fields as strings. Use "00" to "20" instead of 0 to 20. When doing this, the term values which are indexed should be "00", "01", ... Thanks, Koji > -Original

RE: Using Range Queries

2006-02-08 Thread Mike Streeton
You need to encode the numbers by padding to the left or another method, we do this we know what fields are numerics and extend QueryParser to encode the fields for searching. We also decode the number on display below is the functions we use, the tricky bit is getting negative numbers to work corr