Re: indexing and searching real numbers

2007-04-06 Thread Yonik Seeley
On 4/5/07, Leon <[EMAIL PROTECTED]> wrote: I need to index and search real numbers in Lucene. I found NumberUtils class in Solr project which permits one to encode doubles into string so that alpha numeric ordering would correctly correspond to the ordering on numbers. When I use ConstantScoreRan

Re: indexing and searching real numbers

2007-04-05 Thread Otis Gospodnetic
earch - Share - Original Message From: Leon <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Friday, April 6, 2007 1:26:59 AM Subject: Re: indexing and searching real numbers Thanks for your reply Otis, wquery.toString() returns westbc:[* TO ] query.toString()

Re: indexing and searching real numbers

2007-04-05 Thread Leon
Thanks for your reply Otis, wquery.toString() returns westbc:[* TO ] query.toString() returns westbc:[* TO ] If I compare these two strings for equality like wquery.toString().equals(query.toString()) I get true. I also got bytes of those strings and compared them bytewise - they are

Re: indexing and searching real numbers

2007-04-05 Thread Otis Gospodnetic
You can't really rely on Query.toString() to produce a valid query identical to the query in that Query instance. Are you sure both produce the same query string? You didn't include that. Otis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Simpy -- http://www.simpy.com/ - Tag