Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 46250 invoked from network); 1 Dec 2004 17:05:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Dec 2004 17:05:59 -0000 Received: (qmail 21992 invoked by uid 500); 1 Dec 2004 17:04:51 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 21952 invoked by uid 500); 1 Dec 2004 17:04:51 -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 21918 invoked by uid 99); 1 Dec 2004 17:04:51 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from smtpout.mac.com (HELO smtpout.mac.com) (17.250.248.87) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 01 Dec 2004 09:04:47 -0800 Received: from mac.com (smtpin07-en2 [10.13.10.152]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id iB1H4f1K014420 for ; Wed, 1 Dec 2004 09:04:41 -0800 (PST) Received: from [10.0.1.51] (adsl-62-167-46-254.adslplus.ch [62.167.46.254]) (authenticated bits=0) by mac.com (Xserve/smtpin07/MantshX 4.0) with ESMTP id iB1H4bXU012851 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Wed, 1 Dec 2004 09:04:41 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <1101919308.3318.4.camel@localhost> References: <20041201162700.71866.qmail@web12702.mail.yahoo.com> <1101918718.3318.2.camel@localhost> <83E90F21-43B7-11D9-8222-000393760B7E@mac.com> <1101919308.3318.4.camel@localhost> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <13BCC5F6-43BB-11D9-8222-000393760B7E@mac.com> Content-Transfer-Encoding: 7bit From: petite_abeille Subject: Re: Document-Map, Hits-List Date: Wed, 1 Dec 2004 18:04:35 +0100 To: Lucene Users List X-Mailer: Apple Mail (2.619) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Dec 01, 2004, at 17:41, Luke Francl wrote: > Yes, but Otis hasn't implemented that interface. He's wrapping his Hits > with a List of Maps. Right... I'm sure that Otis knows what he is doing :) As far as implementation goes, you have at least 3 options: - Implement List and Map directly in Lucene's relevant objects (e.g. Hits and Document) - Extend Hits and Document to achieve the same - Wrap Hits and Document in another class which implements the relevant interfaces (e.g HitsList and DocumentMap) The point of the exercise being to provide a standard interface while still benefiting from the underlying Lucene optimizations. PA. --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org