You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Michael Chan <da...@gmail.com> on 2006/05/21 13:37:35 UTC

SpanScorer Out Of Bounds

Hi,

Somehow, after running many searches using instances of SpanQuery
(mostly SpanNearQuery), I get the ArrayIndexOutOfBounds exception:

"bash-2.03$ java.lang.ArrayIndexOutOfBoundsException: 2147483647
        at org.apache.lucene.search.spans.SpanScorer.score(SpanScorer.java:72)
        at org.apache.lucene.search.ConjunctionScorer.score(ConjunctionScorer.java:82)
        at org.apache.lucene.search.BooleanScorer2$2.score(BooleanScorer2.java:186)
        at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:327)
        at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:291)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:132)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:99)
        at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:65)
        at org.apache.lucene.search.Hits.<init>(Hits.java:44)
        at org.apache.lucene.search.Searcher.search(Searcher.java:44)
        at org.apache.lucene.search.Searcher.search(Searcher.java:36)
...
<traces to my program>"

Is there a counter or something in play? Is it a cache or some sort?

Any help will be much appreciated.

Thanks.

Michael

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


Re: SpanScorer Out Of Bounds

Posted by Michael Chan <da...@gmail.com>.
Hi Otis,

Thanks for that. I found out that it's a memory usage problem rather
than one on Lucene's part.

Thanks.

Michael

On 5/22/06, Otis Gospodnetic <ot...@yahoo.com> wrote:
> Hi Michael,
> I don't see any responses to your problem.  It's early, so you may get some, but this sounds like a case for JIRA.
> Also, please try to write and attach (to your JIRA case) a unit test that demonstrates a problem, something we can run and debug this.  Without that we may not be able to fix this.
>
> Otis
>
>
> ----- Original Message ----
> From: Michael Chan <da...@gmail.com>
> To: java-user@lucene.apache.org
> Sent: Sunday, May 21, 2006 7:37:35 AM
> Subject: SpanScorer Out Of Bounds
>
> Hi,
>
> Somehow, after running many searches using instances of SpanQuery
> (mostly SpanNearQuery), I get the ArrayIndexOutOfBounds exception:
>
> "bash-2.03$ java.lang.ArrayIndexOutOfBoundsException: 2147483647
>         at org.apache.lucene.search.spans.SpanScorer.score(SpanScorer.java:72)
>         at org.apache.lucene.search.ConjunctionScorer.score(ConjunctionScorer.java:82)
>         at org.apache.lucene.search.BooleanScorer2$2.score(BooleanScorer2.java:186)
>         at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:327)
>         at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:291)
>         at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:132)
>         at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:99)
>         at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:65)
>         at org.apache.lucene.search.Hits.<init>(Hits.java:44)
>         at org.apache.lucene.search.Searcher.search(Searcher.java:44)
>         at org.apache.lucene.search.Searcher.search(Searcher.java:36)
> ...
> <traces to my program>"
>
> Is there a counter or something in play? Is it a cache or some sort?
>
> Any help will be much appreciated.
>
> Thanks.
>
> Michael
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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


Re: SpanScorer Out Of Bounds

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Hi Michael,
I don't see any responses to your problem.  It's early, so you may get some, but this sounds like a case for JIRA.
Also, please try to write and attach (to your JIRA case) a unit test that demonstrates a problem, something we can run and debug this.  Without that we may not be able to fix this.

Otis


----- Original Message ----
From: Michael Chan <da...@gmail.com>
To: java-user@lucene.apache.org
Sent: Sunday, May 21, 2006 7:37:35 AM
Subject: SpanScorer Out Of Bounds

Hi,

Somehow, after running many searches using instances of SpanQuery
(mostly SpanNearQuery), I get the ArrayIndexOutOfBounds exception:

"bash-2.03$ java.lang.ArrayIndexOutOfBoundsException: 2147483647
        at org.apache.lucene.search.spans.SpanScorer.score(SpanScorer.java:72)
        at org.apache.lucene.search.ConjunctionScorer.score(ConjunctionScorer.java:82)
        at org.apache.lucene.search.BooleanScorer2$2.score(BooleanScorer2.java:186)
        at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:327)
        at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:291)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:132)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:99)
        at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:65)
        at org.apache.lucene.search.Hits.<init>(Hits.java:44)
        at org.apache.lucene.search.Searcher.search(Searcher.java:44)
        at org.apache.lucene.search.Searcher.search(Searcher.java:36)
...
<traces to my program>"

Is there a counter or something in play? Is it a cache or some sort?

Any help will be much appreciated.

Thanks.

Michael

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





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