lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-2472) StatsComponent should support hierarchical facets
Date Wed, 30 Nov 2011 13:35:39 GMT

    [ https://issues.apache.org/jira/browse/SOLR-2472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13160046#comment-13160046
] 

Erick Erickson commented on SOLR-2472:
--------------------------------------

This patch no longer applies cleanly.

I'll volunteer to shepherd this through the commit process if:

1> we can get some consensus that this is a good thing to do.
2> you update it to apply cleanly, and provide some unit tests, StatsComponentTest might
be the place to start.

It's probably worthwhile to get consensus before spending time working on the patch, could
you outline the use-case for this functionality?
                
> StatsComponent should support hierarchical facets
> -------------------------------------------------
>
>                 Key: SOLR-2472
>                 URL: https://issues.apache.org/jira/browse/SOLR-2472
>             Project: Solr
>          Issue Type: New Feature
>    Affects Versions: 3.1, 4.0
>            Reporter: Dmitry Drozdov
>         Attachments: SOLR-2472.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> It is currently possible to get only single layer of faceting in StatsComponent.
> The proposal is it make it possible to specify stats.facet parameter like this:
> &stats=true&stats.field=sField&stats.facet=fField1,fField2
> and get the response like this:
> <lst name="stats">
> <lst name="stats_fields">
> <lst name="sField">
> <double name="min">1.0</double>
> <double name="max">1.0</double>
> <double name="sum">4.0</double>
> <long name="count">4</long>
> <long name="missing">0</long>
> <double name="sumOfSquares">xxxxxxxx</double>
> <double name="mean">xxxxxxxx</double>
> <double name="stddev">xxxxxxxx</double>
> <lst name="facets">
> <lst name="fField1">
> <lst name="fField1Value1">
> <double name="min">1.0</double>
> <double name="max">1.0</double>
> <double name="sum">2.0</double>
> <long name="count">2</long>
> <long name="missing">0</long>
> <double name="sumOfSquares">xxxxxxxx</double>
> <double name="mean">xxxxxxxx</double>
> <double name="stddev">xxxxxxxx</double>
> <lst name="facets">
> <lst name="fField2">
> <lst name="fField2Value1">
> <double name="min">1.0</double>
> <double name="max">1.0</double>
> <double name="sum">1.0</double>
> <long name="count">1</long>
> <long name="missing">0</long>
> <double name="sumOfSquares">xxxxxxxx</double>
> <double name="mean">xxxxxxxx</double>
> <double name="stddev">xxxxxxxx</double>
> </lst>
> <lst name="fField2Value2">
> <double name="min">1.0</double>
> <double name="max">1.0</double>
> <double name="sum">1.0</double>
> <long name="count">1</long>
> <long name="missing">0</long>
> <double name="sumOfSquares">xxxxxxxx</double>
> <double name="mean">xxxxxxxx</double>
> <double name="stddev">xxxxxxxx</double>
> </lst>
> </lst>
> </lst>
> </lst>
> <lst name="fField1Value2">
> <double name="min">1.0</double>
> <double name="max">1.0</double>
> <double name="sum">2.0</double>
> <long name="count">2</long>
> <long name="missing">0</long>
> <double name="sumOfSquares">xxxxxxxx</double>
> <double name="mean">xxxxxxxx</double>
> <double name="stddev">xxxxxxxx</double>
> <lst name="facets">
> <lst name="fField2">
> <lst name="fField2Value1">
> <double name="min">1.0</double>
> <double name="max">1.0</double>
> <double name="sum">1.0</double>
> <long name="count">1</long>
> <long name="missing">0</long>
> <double name="sumOfSquares">xxxxxxxx</double>
> <double name="mean">xxxxxxxx</double>
> <double name="stddev">xxxxxxxx</double>
> </lst>
> <lst name="fField2Value2">
> <double name="min">1.0</double>
> <double name="max">1.0</double>
> <double name="sum">1.0</double>
> <long name="count">1</long>
> <long name="missing">0</long>
> <double name="sumOfSquares">xxxxxxxx</double>
> <double name="mean">xxxxxxxx</double>
> <double name="stddev">xxxxxxxx</double>
> </lst>
> </lst>
> </lst>
> </lst>
> </lst>
> </lst>
> </lst>
> </lst>
> </lst>

--
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


Mime
View raw message