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 EE525964A for ; Wed, 19 Oct 2011 09:10:53 +0000 (UTC) Received: (qmail 56378 invoked by uid 500); 19 Oct 2011 09:10:52 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 56055 invoked by uid 500); 19 Oct 2011 09:10:40 -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 55926 invoked by uid 99); 19 Oct 2011 09:10:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2011 09:10:35 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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, 19 Oct 2011 09:10:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1EC2D310749 for ; Wed, 19 Oct 2011 09:10:11 +0000 (UTC) Date: Wed, 19 Oct 2011 09:10:11 +0000 (UTC) From: "Li Fanxi (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <1733665956.9837.1319015411127.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-792) Pivot (ie: Decision Tree) Faceting Component 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/SOLR-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13130461#comment-13130461 ] Li Fanxi commented on SOLR-792: ------------------------------- I have a question about facet.pivot.mincount. Does this parameter defined as the limitation for "minimum number of documents" that should be included in the result? In the current implementation, I found that this parameter also takes effect for the number of facets fields, caused by the following code in doPivots function: {code} NamedList nl = sf.getTermCounts(subField); if (nl.size() >= minMatch ) { pivot.add( "pivot", doPivots( nl, subField, nextField, fnames, rb, subset, minMatch ) ); values.add( pivot ); // only add response if there are some counts } {code} I don't understand why we need to compare minMatch to nl.size(). With this code, if we do pivot faceting on the fields "cat,manu_id_s", when cat='electronics' and we have 50 documents distributed in 3 different "manu_id_s". If we limit the result with facet.pivot.mincount=5, no result will be returned, because there are only 3 different "manu_id_s". Is this the desired behavior for the "facet.pivot.mincount" parameter? > Pivot (ie: Decision Tree) Faceting Component > -------------------------------------------- > > Key: SOLR-792 > URL: https://issues.apache.org/jira/browse/SOLR-792 > Project: Solr > Issue Type: New Feature > Reporter: Erik Hatcher > Assignee: Yonik Seeley > Priority: Minor > Attachments: SOLR-792-PivotFaceting.patch, SOLR-792-PivotFaceting.patch, SOLR-792-PivotFaceting.patch, SOLR-792-PivotFaceting.patch, SOLR-792-as-helper-class.patch, SOLR-792-distributed.patch, SOLR-792-raw-type.patch, SOLR-792.patch, SOLR-792.patch, SOLR-792.patch, SOLR-792.patch, SOLR-792.patch, SOLR-792.patch, SOLR-792.patch > > > A component to do multi-level faceting. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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