Is it an actual array of full Documents or a list of reference points to
Documents? And what's the typical size in memory of a Hits object with say
1000 avg size docs?
___
Yahoo! Messenger - NEW crystal cl
, October 05, 2005 3:26 PM
To: java-user@lucene.apache.org
Subject: What is a Hits object?
Is it an actual array of full Documents or a list of reference points to
Documents? And what's the typical size in memory of a Hits object with
say 1000 avg size
A Hits object is essentially a cache on query results. It caches in 2 ways:
1. When a query returning Hits is requested, only the top 100 document IDs and
scores are requested from the scoring system, and the ID/Score pairs are stored
in a list in the Hits object. Whenever a document ID, score
- Original Message -
From: "J.J. Larrea" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, October 05, 2005 10:31 PM
Subject: Re: What is a Hits object?
> A Hits object is essentially a cache on query results. It caches in 2
ways:
>
> 1. When a query returning Hits i
On Oct 6, 2005, at 11:28 AM, Cyril Barlow wrote:
How long does the Hits object stay in memory for?
As long as you keep it around. Lucene isn't responsible for keeping
a reference to it, your application is.
Until the IndexSearcher closes? And if you just use 1 IndexSearcher
would there