Because the lucene term ordering is lexicographic,
if you index strings "11", "100", and "150",
the terms  in the index "100","11","150" in this order.

Koji


Jim Adams wrote:
Why is this?

Thanks.

On Sat, Jan 31, 2009 at 3:50 AM, Koji Sekiguchi <k...@r.email.ne.jp> wrote:

Jim Adams wrote:

True, which is what I'll probably do, but is there any way to do this
using
'string'?  Actually I have even seen this with date fields, which seems
very
odd (more data being returned than I expected).



If you want to stick with string, index "011" instead of "11".

Koji





Reply via email to