lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Drozdov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-2472) StatsComponent should support hierarchical facets
Date Wed, 20 Apr 2011 09:54:05 GMT
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
            Reporter: Dmitry Drozdov


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