lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aviran Mordo" <amo...@infosciences.com>
Subject RE: Number Query
Date Thu, 15 May 2003 15:35:59 GMT
You can use RangeQuery to do a range search. If you want to index
numbers you should put leading 0 (zero) in order for the range to work.
For instance: 15.00 should be indexed as 00000015.00

-----Original Message-----
From: Song, Xuekai [mailto:Xuekai.Song@broadvision.com] 
Sent: Thursday, May 15, 2003 11:28 AM
To: lucene-user@jakarta.apache.org
Subject: Number Query


Is it possible to search using a query like price:>15.00 or something
similar.  This does not seem possible to me since '<' and '>' are not
query operators.  Also, the index created for filed 'price' is String.
Is there any workaround? 

Thanks in advance,

Kai

---------------------------------------------------------------------
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