From java-dev-return-15711-apmail-lucene-java-dev-archive=lucene.apache.org@lucene.apache.org Fri Sep 15 13:05:29 2006 Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 90463 invoked from network); 15 Sep 2006 13:05:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Sep 2006 13:05:28 -0000 Received: (qmail 21998 invoked by uid 500); 15 Sep 2006 13:05:21 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 21875 invoked by uid 500); 15 Sep 2006 13:05:21 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 21764 invoked by uid 99); 15 Sep 2006 13:05:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Sep 2006 06:05:20 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Sep 2006 06:05:17 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8EF7D71434A for ; Fri, 15 Sep 2006 13:01:25 +0000 (GMT) Message-ID: <20579223.1158325285583.JavaMail.jira@brutus> Date: Fri, 15 Sep 2006 06:01:25 -0700 (PDT) From: "Chris (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-671) Hashtable based Document In-Reply-To: <14347709.1158247162353.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/LUCENE-671?page=comments#action_12434958 ] Chris commented on LUCENE-671: ------------------------------ > It is to keep folks from thinking, if they subclass Document, that instances of their subclass will be returned to them in search results. To make Documents fully-subclassible one would need to make their serialization extensible. Ahhh, that makes sense to me, and I think providing a method for informing the rest of lucene which versions of various classes to use is probably more trouble than it's worth. We'll just maintain our own tree then. Thanks > Hashtable based Document > ------------------------ > > Key: LUCENE-671 > URL: http://issues.apache.org/jira/browse/LUCENE-671 > Project: Lucene - Java > Issue Type: Improvement > Components: Index, Search > Affects Versions: 2.0.0, 1.9 > Reporter: Chris > Priority: Minor > Attachments: HashDocument.java, TestBenchDocuments.java > > > I've attached a Document based on a hashtable and a performance test case. It performs better in most cases (all but enumeration by my measurement), but likely uses a larger memory footprint. The Document testcase will fail since it accesses the "fields" variable directly and gets confused when it's not the list it expected it to be. > If nothing else we would be interested in at least being able to extend Document, which is currently declared final. (Anyone know the performance gains on declaring a class final?) Currently we have to maintain a copy of lucene which has methods and classes definalized and overriden. > There are other classes as well that could be declared non-final (Fieldable comes to mind) since it's possible to make changes for project specific situations in those aswell but that's off-topic. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org