Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 188386D4E for ; Wed, 1 Jun 2011 19:26:35 +0000 (UTC) Received: (qmail 44924 invoked by uid 500); 1 Jun 2011 19:26:33 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 44855 invoked by uid 500); 1 Jun 2011 19:26:33 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 44848 invoked by uid 99); 1 Jun 2011 19:26:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 19:26:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 19:26:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9056AEE4A7 for ; Wed, 1 Jun 2011 19:25:50 +0000 (UTC) Date: Wed, 1 Jun 2011 19:25:50 +0000 (UTC) From: "Michael McCandless (JIRA)" To: dev@lucene.apache.org Message-ID: <1714742068.60709.1306956350587.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <901349642.13295.1305392687297.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3099) Grouping module should allow subclasses to set the group key per document 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-3099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13042377#comment-13042377 ] Michael McCandless commented on LUCENE-3099: -------------------------------------------- I think we are close here! It's great to see you're able to cutover Solr trunk to the grouping module based on this. Random things: * I think we can in fact use Map<...> instead of HashMap<...> in 2nd pass abstract collector? * Can you add @SuppressWarnings("unchecked") for the generic array creations? * Can you fix the other generics warnings? Eg the copy-ctor in TopGroups, and TestGrouping has a few warnings. ("ant clean compile-test" should show all these warnings). * The class in AllGroupsCollectorTest needs to be renamed * OK, let's leave groupDocs as protected in the 2nd pass collector (remove the nocommit/your response). * For AbstractAllGroupsCollector, can we impl the getGroupCount in the base class as getGroups.size()? > Grouping module should allow subclasses to set the group key per document > ------------------------------------------------------------------------- > > Key: LUCENE-3099 > URL: https://issues.apache.org/jira/browse/LUCENE-3099 > Project: Lucene - Java > Issue Type: Improvement > Reporter: Michael McCandless > Fix For: 3.2, 4.0 > > Attachments: LUCENE-3099.patch, LUCENE-3099.patch, LUCENE-3099.patch, LUCENE-3099.patch, LUCENE-3099.patch > > > The new grouping module can only group by a single-valued indexed field. > But, if we make the 'getGroupKey' a method that a subclass could override, then I think we could refactor Solr over to the module, because it could do function queries and normal queries via subclass (I think). > This also makes the impl more extensible to apps that might have their own interesting group values per document. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org