lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephane James Vaucher <vauch...@cirano.qc.ca>
Subject Re: Numeric field data
Date Fri, 02 Apr 2004 18:58:55 GMT
Hi Tate,

There is a solution by Erik that pads numbers in the index. That would 
allow you to search correctly. I'm not sure about decimal, but you could 
always add a multiplier.

HTH,
sv

On Fri, 2 Apr 2004, Tate Avery wrote:

> Hello,
> 
> Is there a way (direct or indirect) to support a field with numeric data?
> 
> More specifically, I would be interested in doing a range search on numeric
> data and having something like:
> 
> 	number:[1 TO 2]
> 
> ... and not have it return 11 or 103, etc.  But, return 1.5, for example.
> 
> Is there any support in current and/or upcoming versions for this type of
> thing?
> Or, has anyone figured out a creative workaround to obtain the desired
> result?
> 
> 
> Thank you for any comments,
> Tate
> 
> p.s.  Ideally, I would be able to do equal, greater than, less than and
> these in combination with each other (i.e. ranges, greater than or equal to,
> etc.).
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message