lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: RangeQuery Note
Date Mon, 17 Feb 2003 20:12:18 GMT
Hello,

Padding with zeros is the way it's supposed to work (i.e. not a bug
although not intuitive), since Lucene is comparing terms
lexiocographically.

Otis
P.S.
To be included in the list on the Powered by Lucene page you need to
display the clickable Lucene logo on your search results pages.

--- host unknown <linux_newbie@hotmail.com> wrote:
> Hi All,
> 
> I've spent the weekend mulling over a problem I had with a RangeQuery
> over a 
> Price field.  The problem was that prices can range from 1 to many
> digits 
> (no cents, just dollars).  My searches were returning inconsistent
> results.  
> After much debugging and playing around I found that 99 != 000099. 
> I've 
> since converted all my prices to zero filled strings of length 8 and
> the 
> searches are working properly.
> 
> Question/Comment:
> 
> Is this a bug in the sense that searching a range from 0 to 100
> should 
> return 99 (as opposed to 099)? if it isn't this might make a helpful
> note in 
> the javadoc.
> 
> Have a great day,
> Dominic
> madison.com
> 
> P.S.
> Feel free to add us to your list of happy Lucene users.  We're
> currently 
> using Lucene for our archives search (www.madison.com/archives),
> currently 
> building our classifieds search (www.madison.com/class), and will be 
> expanding into a full site search as time permits.  Our archives are 
> receiving nearly 1000 searches a day (It's only been live for a bit
> over a 
> month now) and we've been receiving rave reviews about the speed and 
> accuracy of the results sets.
> 
> Many Thanks
> 
> 
> 
> 
> 
> _________________________________________________________________
> Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
> http://join.msn.com/?page=features/featuredemail
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

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