[
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<Integer> 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: [email protected]
For additional commands, e-mail: [email protected]