Thanks all of you.
On 28 December 2010 15:54, Paul Libbrecht 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
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
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 engin
MultiSearcher uses the given integer as the expected number of results
and creates a hitqueue for it. Since you are asking for INT_MAX hits
Lucene creates a hitQueue for either INT_MAX or maxDoc() documents and
preallocates that memory. So in the worst case it creates an Object
array with INTEGER_M
I am using lucene 3.0.3
On 28 December 2010 14:06, Laxmilal Menariya wrote:
> Which version you are trying of lucene ?
>
> On Tue, Dec 28, 2010 at 12:30 PM, Jawahar Lal wrote:
>
> > Hi,
> >
> > I am using multiSearcher as
> >
> > objMultiSearcher.search(query,null,Integer.MaxValue);
> >
> > I
Which version you are trying of lucene ?
On Tue, Dec 28, 2010 at 12:30 PM, Jawahar Lal 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
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.