Re: Range search in numeric fields

2007-04-04 Thread Peter W .
Andy, MemoryCachedRangeFilter looks nice, can't wait for it to be included with other goodies in the next 2.x point release! Numeric range search questions come up often for Lucene, best practices probably include working with BitSets directly (which I have been unable to grok), using queries li

Re: Range search in numeric fields

2007-04-03 Thread Antony Bowesman
Ivan Vasilev wrote: Hi All, I have the following problem: I have to implement range search for fields that contain numbers. For example the field size that contains file size. The problem is that the numbers are not kept in strings with strikt length. There are field values like this: "32", "4

Re: Range search in numeric fields

2007-04-03 Thread Andy Liu
You can try using MemoryCachedRangeFilter. https://issues.apache.org/jira/browse/LUCENE-855 It stores field values in memory as longs so your values don't have to be lexigraphically comparable. Also, MemoryCachedRangeFilter can be orders of magnitude faster than standard RangeFilter, depending

Range search in numeric fields

2007-04-03 Thread Ivan Vasilev
Hi All, I have the following problem: I have to implement range search for fields that contain numbers. For example the field size that contains file size. The problem is that the numbers are not kept in strings with strikt length. There are field values like this: "32", "421", "1201". So when