Re: java.lang.NegativeArraySizeException on searching using Integer.MAX_VALUE for number of hits

2009-12-06 Thread Michael McCandless
OK, I opened https://issues.apache.org/jira/browse/LUCENE-2119 Mike On Wed, Dec 2, 2009 at 8:34 AM, Paul Taylor wrote: > Hi, just upgraded my code to Lucene 3.0 and on one simple search I get the > following stacktrace when I pass Integer.MAX_VALUE to the > Searcher.search(Query query,int n) met

Re: java.lang.NegativeArraySizeException on searching using Integer.MAX_VALUE for number of hits

2009-12-06 Thread Michael McCandless
On Wed, Dec 2, 2009 at 10:18 AM, Paul Taylor wrote: > Uwe Schindler wrote: >> >> If you want to have all results, you do something wrong. :-) >> >> Full text engines like lucene are made for returning only top-ranking >> results. So if you use TopDocs results you must know before how many >> TopDo

Re: java.lang.NegativeArraySizeException on searching using Integer.MAX_VALUE for number of hits

2009-12-02 Thread Paul Taylor
Uwe Schindler wrote: If you want to have all results, you do something wrong. :-) Full text engines like lucene are made for returning only top-ranking results. So if you use TopDocs results you must know before how many TopDocs you want to have. Internally Lucene works with PriorityQueues that

RE: java.lang.NegativeArraySizeException on searching using Integer.MAX_VALUE for number of hits

2009-12-02 Thread Uwe Schindler
rg > Subject: java.lang.NegativeArraySizeException on searching using > Integer.MAX_VALUE for number of hits > > Hi, just upgraded my code to Lucene 3.0 and on one simple search I get > the following stacktrace when I pass Integer.MAX_VALUE to the > Searcher.search(Query query,

java.lang.NegativeArraySizeException on searching using Integer.MAX_VALUE for number of hits

2009-12-02 Thread Paul Taylor
Hi, just upgraded my code to Lucene 3.0 and on one simple search I get the following stacktrace when I pass Integer.MAX_VALUE to the Searcher.search(Query query,int n) method, if I change the value to 1000 it works okay. java.lang.NegativeArraySizeException at org.apache.lucene.util.Prior