Thanks all of you. On 28 December 2010 15:54, Paul Libbrecht <p...@hoplahup.net> wrote:
> I also not that this is a fundamental characteristic of the great > performance of Lucene and its related products since it allows cleanly > managed resources. "this" is generally called paging. > > paul > > > Le 28 déc. 2010 à 10:32, Uwe Schindler a écrit : > > > The TopDocs returning methods are not intended to get all results, so Max > Int is not a valid value. The maximum hit count allocates a PriorityQueue > with so many slots. To retrieve all hits (unsorted) you have to write your > own collector. But that is not the natural use case for a full text engine, > which is to return the top n ranking results. For this reason its not > allowed to go beyond page 50 or like that in Google (just as example). So > choose n as big as how many top ranking results you are interested in. This > number is normally not so big, as most users are only interested in top > ranking results. > > > > Uwe > > > > > > > > "Jawahar Lal" <j...@chambal.com> schrieb: > > > >> I am using lucene 3.0.3 > >> > >> On 28 December 2010 14:06, Laxmilal Menariya <lmena...@chambal.com> > >> wrote: > >> > >>> Which version you are trying of lucene ? > >>> > >>> On Tue, Dec 28, 2010 at 12:30 PM, Jawahar Lal <j...@chambal.com> > >> wrote: > >>> > >>>> Hi, > >>>> > >>>> I am using multiSearcher as > >>>> > >>>> objMultiSearcher.search(query,null,Integer.MaxValue); > >>>> > >>>> I searched a query, which should & does not return any hit. As I > >> run the > >>>> query, the above statement throw OutofMemory exception. I change > >> the > >>>> Integer.MaxValue TO 100, then I again searched, it returned 0 hit. > >>>> > >>>> Why its thowing memory exception, even there is not hit found for > >> the > >>> query > >>>> ? > >>>> > >>>> Thanks > >>>> > >>> > >>> > >>> > >>> -- > >>> Thanks, > >>> Laxmilal Menariya > >>> > > > > -- > > Uwe Schindler > > H.-H.-Meier-Allee 63, 28213 Bremen > > http://www.thetaphi.de > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > > For additional commands, e-mail: java-user-h...@lucene.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >