Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 4943 invoked from network); 28 May 2004 00:05:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 May 2004 00:05:17 -0000 Received: (qmail 19763 invoked by uid 500); 28 May 2004 00:05:22 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 19616 invoked by uid 500); 28 May 2004 00:05:20 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 19415 invoked by uid 98); 28 May 2004 00:05:19 -0000 Received: from erik@ehatchersolutions.com by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(24.51.109.181):. Processed in 0.055352 secs); 28 May 2004 00:05:19 -0000 X-Qmail-Scanner-Mail-From: erik@ehatchersolutions.com via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(24.51.109.181):. Processed in 0.055352 secs) Received: from unknown (HELO postfix.mail.ehatchersolutions.com) (24.51.109.181) by hermes.apache.org with SMTP; 28 May 2004 00:05:18 -0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by postfix.mail.ehatchersolutions.com (Postfix) with ESMTP id C3F6672DF26 for ; Thu, 27 May 2004 20:04:48 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v613) In-Reply-To: <732f3c72f24d.72f24d732f3c@lbl.gov> References: <732f3c72f24d.72f24d732f3c@lbl.gov> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: Hits object Date: Thu, 27 May 2004 20:04:46 -0400 To: "Lucene Users List" X-Mailer: Apple Mail (2.613) X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hits caches up to 200 HitDocs, which may contain the underlying Document. I suspect you accessed a Document that had already been accessed and thus found something in the cache, and it did not have to get back to the underlying searcher. Erik On May 27, 2004, at 4:51 PM, DMGoodstein@lbl.gov wrote: > At one point I thought I'd read that a Hits object > doesn't actually contain Documents, but rather > references to them. However, in that case I > wouldn't expect I could save a Hits object past the > closing of it's orginiating Searcher (in this case a > MultiSearcher: Hits hits = > myMultiSearcher.search(....)). yet later when I > access the same Hits object (having reinstantiated a > new MultiSearcher, myMultiSearcher2, but *not* > performing a new search) I can retrieve documents > from the Hits object without complaint. Is this > just my good fortune that things haven't been > garbage-collected yet? Or does the Hits object > contain the full document set? > > --David > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: lucene-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org