Re: why is query picking up extra result

2011-06-22 Thread Ian Lea
[20110601 TO ] is the way to do it, because these are string fields being checked with string comparisons. If your numbers are variable length you will need to pad them. Or look at NumericField and NumericRangeQuery. Faster and better. -- Ian. On Tue, Jun 21, 2011 at 6:34 PM, Hiller,

why is query picking up extra result

2011-06-21 Thread Hiller, Dean x66079
Because when I use [ 20110601 TO * ] lucene does not return my results greater than 20110601 but when I use [20110601 TO ], it works fine. Why is this? How do I get everything larger than 20110601. I have another Case of sequence numbers and want to get everything above a certain numbe