Re: regarding range search

2007-06-12 Thread Mohammad Norouzi
Thanks Narednra and Daniel but it accepts only long, I found LUCENE-530 to support double and float etc. Have you seen it? https://issues.apache.org/jira/browse/LUCENE-530 another question is Do I have to use it while indexing? how about the index already created? -- Regards, Mohammad

Re: regarding range search

2007-06-12 Thread Narednra Singh Panwar
Use NumberTools.longToString() while storing it in to lucene index and use (double)NumberTools.stringToLong() while reading it from Lucene index. Hope this will solve your problem. Thanks Narendra On 6/12/07, Mohammad Norouzi <[EMAIL PROTECTED]> wrote: Hello consider a query like this patien

Re: regarding range search

2007-06-12 Thread Daniel Noll
On Tuesday 12 June 2007 16:44:25 Mohammad Norouzi wrote: > Hello > consider a query like this > > patientResult:[8 TO 9] > > this returns correct documents but > > patientResult:[8 TO 10] > > return nothing. and also this range [0.1 TO 10] returns results like 11, > 10.8, 10.9 etc. > > is there an

regarding range search

2007-06-11 Thread Mohammad Norouzi
Hello consider a query like this patientResult:[8 TO 9] this returns correct documents but patientResult:[8 TO 10] return nothing. and also this range [0.1 TO 10] returns results like 11, 10.8, 10.9 etc. is there any tricky way or workaround to obtain correct results? I know lucene compares