Hi, NumberTools provides method longToString(long l) which pads the values. It can be indexed and range search like normal queries.
Slight issue is when you search view the index in Luke because the numbers are hexadecimal notation and so not easily understandable. Hence you may want to store the original prices also in the index. Handy for debugging. Similarly in search time, use longToString to get hexadecimal coded values for prices and make a range query encoded values. -- Thanks Umesh On Fri, Sep 19, 2008 at 4:26 PM, Ian Lea <[EMAIL PROTECTED]> wrote: > Hi > > > The comparison is on strings, so, yes, you do have to pad your values. > > > -- > Ian. > > > On Fri, Sep 19, 2008 at 10:51 AM, Giannandrea Castaldi > <[EMAIL PROTECTED]> wrote: > > Hi, > > I need to specify in my query ranges with product price. I wonder if > > the only solution is padding values with zeros. For example, if I'm > > looking for price between 3$ and 10$ I must write the query in this > > manner: price:[00003.00 TO 00010.00]? > > Thanks. > > G > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanking you Regards Umesh Prasad