Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 57153 invoked from network); 6 Aug 2009 13:22:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Aug 2009 13:22:30 -0000 Received: (qmail 51736 invoked by uid 500); 6 Aug 2009 13:22:37 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 51650 invoked by uid 500); 6 Aug 2009 13:22:36 -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 51642 invoked by uid 99); 6 Aug 2009 13:22:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Aug 2009 13:22:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Aug 2009 13:22:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D46AB234C04C for ; Thu, 6 Aug 2009 06:22:14 -0700 (PDT) Message-ID: <2031994681.1249564934869.JavaMail.jira@brutus> Date: Thu, 6 Aug 2009 06:22:14 -0700 (PDT) From: "Tim Smith (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-1784) Make BooleanWeight and DisjunctionMaxWeight protected In-Reply-To: <337871659.1249491675150.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tim Smith updated LUCENE-1784: ------------------------------ Attachment: LUCENE-1784.patch Patch that makes BooleanWeight and DisjunctionMaxWeight protected also makes weights on DisjunctionMaxWeight protected > Make BooleanWeight and DisjunctionMaxWeight protected > ----------------------------------------------------- > > Key: LUCENE-1784 > URL: https://issues.apache.org/jira/browse/LUCENE-1784 > Project: Lucene - Java > Issue Type: Improvement > Affects Versions: 2.4 > Reporter: Tim Smith > Priority: Minor > Attachments: LUCENE-1784.patch > > > Currently, BooleanWeight is private, yet it has 2 protected members (similarity, weights) which are unaccessible from custom code > i have some use cases where it would be very useful to crawl a BooleanWeight to get at the sub Weight objects > however, since BooleanWeight is private, i have no way of doing this > If BooleanWeight is protected, then i can subclass BooleanQuery to hook in and wrap BooleanWeight with a subclass to facilitate this walking of the Weight objects > Would also want DisjunctionMaxWeight to be protected, along with its "weights" member > Would be even better if these Weights were made public with accessors to their sub "weights" objects (then no subclassing would be necessary on my part) > this should be really trivial and would be great if it can get into 2.9 > more generally, it would be nice if all Weight classes were public with nice accessors to relevant "sub weights"/etc so custom code can get its hooks in where and when desired -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org