SpanScorer Out Of Bounds

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SpanScorer Out Of Bounds

Michael-61
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: SpanScorer Out Of Bounds

Otis Gospodnetic-2
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 <[hidden email]>
To: [hidden email]
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: [hidden email]
For additional commands, e-mail: [hidden email]





---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: SpanScorer Out Of Bounds

Michael-61
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 <[hidden email]> 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 <[hidden email]>
> To: [hidden email]
> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]