You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Antoine Brun <ab...@opsys.fr> on 2005/10/19 10:17:53 UTC

Re: about numeric range searching with large value sets patches

Hello,

I juste made some junit test using some IntegerRangeQuery's, and I get 
some strange results.
I attached the junit test I used. It fails on the last assert. I am 
expecting only one result: the date between 1981 and 1983, but I get 2
The test output is:

term = date:1980
term = date:1982
term = date:1984
q = date=[1981 TO 1983]
Document<stored/uncompressed,indexed,tokenized<date:1982>>
Document<stored/uncompressed,indexed,tokenized<date:1984>>

Do you have any idea?

Antoine


Randy Puttick wrote:

>My fault, I forgot to attach it.  I've added it now.  Let me know how
>this works for you.
>
>Randy Puttick
>
>-----Original Message-----
>From: Antoine Brun [mailto:abrun@opsys.fr] 
>Sent: Friday, August 19, 2005 8:11 AM
>To: java-dev@lucene.apache.org
>Subject: about numeric range searching with large value sets patches
>
>Hello,
>
>I am trying to integrate the patches for the numeric range searching and
>
>the org.apache.lucene.util.Sort class that was posted as an attachment 
>imports a org.apache.lucene.util.IntStack which I can't find.
>Can anyone add this class?
>Maybe as an attachment to 
>http://issues.apache.org/bugzilla/show_bug.cgi?id=36135
>
>Thank you
>
>
>       Antoine Brun
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>
>  
>


Re: about numeric range searching with large value sets patches

Posted by Chris Hostetter <ho...@fucit.org>.
I've never really looked at the IntegerRangeQuery submission, but if you
think you've found a bug, you should attach your test to the JIRA issue
that the orriginal patch bug has been migrated to, so that it's clear to
anyone looking at applying it that it may have problems...

http://issues.apache.org/jira/secure/ViewIssue.jspa?key=LUCENE-421



: Date: Wed, 19 Oct 2005 10:17:53 +0200
: From: Antoine Brun <ab...@opsys.fr>
: Reply-To: java-dev@lucene.apache.org
: To: java-dev@lucene.apache.org
: Subject: Re: about numeric range searching with large value sets patches
:
: Hello,
:
: I juste made some junit test using some IntegerRangeQuery's, and I get
: some strange results.
: I attached the junit test I used. It fails on the last assert. I am
: expecting only one result: the date between 1981 and 1983, but I get 2
: The test output is:
:
: term = date:1980
: term = date:1982
: term = date:1984
: q = date=[1981 TO 1983]
: Document<stored/uncompressed,indexed,tokenized<date:1982>>
: Document<stored/uncompressed,indexed,tokenized<date:1984>>
:
: Do you have any idea?
:
: Antoine
:
:
: Randy Puttick wrote:
:
: >My fault, I forgot to attach it.  I've added it now.  Let me know how
: >this works for you.
: >
: >Randy Puttick
: >
: >-----Original Message-----
: >From: Antoine Brun [mailto:abrun@opsys.fr]
: >Sent: Friday, August 19, 2005 8:11 AM
: >To: java-dev@lucene.apache.org
: >Subject: about numeric range searching with large value sets patches
: >
: >Hello,
: >
: >I am trying to integrate the patches for the numeric range searching and
: >
: >the org.apache.lucene.util.Sort class that was posted as an attachment
: >imports a org.apache.lucene.util.IntStack which I can't find.
: >Can anyone add this class?
: >Maybe as an attachment to
: >http://issues.apache.org/bugzilla/show_bug.cgi?id=36135
: >
: >Thank you
: >
: >
: >       Antoine Brun
: >
: >---------------------------------------------------------------------
: >To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
: >For additional commands, e-mail: java-dev-help@lucene.apache.org
: >
: >
: >---------------------------------------------------------------------
: >To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
: >For additional commands, e-mail: java-dev-help@lucene.apache.org
: >
: >
: >
: >
:
:



-Hoss


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