[jira] [Created] (SOLR-2472) StatsComponent should support hierarchical facets

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (SOLR-2472) StatsComponent should support hierarchical facets

Sebastian Nagel (Jira)
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (SOLR-2472) StatsComponent should support hierarchical facets

Sebastian Nagel (Jira)

     [ https://issues.apache.org/jira/browse/SOLR-2472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Drozdov updated SOLR-2472:
---------------------------------

    Attachment: SOLR-2472.patch

Attached the patch that adds the subj feature.

Changed the root stats facet lst name to "fField1,fField2" so that we can have multiple stats.facet parameters for the same fField1.

> 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
>         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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (SOLR-2472) StatsComponent should support hierarchical facets

Sebastian Nagel (Jira)
In reply to this post by Sebastian Nagel (Jira)

     [ https://issues.apache.org/jira/browse/SOLR-2472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Drozdov updated SOLR-2472:
---------------------------------

    Affects Version/s: 4.0

> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (SOLR-2472) StatsComponent should support hierarchical facets

Sebastian Nagel (Jira)
In reply to this post by Sebastian Nagel (Jira)

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

Dmitry Drozdov commented on SOLR-2472:
--------------------------------------

Any chance for this to be merged into trunk?
               

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

Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (SOLR-2472) StatsComponent should support hierarchical facets

Sebastian Nagel (Jira)
In reply to this post by Sebastian Nagel (Jira)

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

Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (SOLR-2472) StatsComponent should support hierarchical facets

Sebastian Nagel (Jira)
In reply to this post by Sebastian Nagel (Jira)

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

Dmitry Drozdov commented on SOLR-2472:
--------------------------------------

The use-case is to get multi-level statistics with a single query.
We use Solr to store a lot of something like event log data.
It is probably not what Solr was designed for, but it is doing very well :)
We need to get some reports for this data and StatsComponent does exactly what we need except the multi-level statistics.
               

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

Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (SOLR-2472) StatsComponent should support hierarchical facets

Sebastian Nagel (Jira)
In reply to this post by Sebastian Nagel (Jira)

     [ https://issues.apache.org/jira/browse/SOLR-2472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Drozdov updated SOLR-2472:
---------------------------------

    Attachment: SOLR-2472_3.5.0.patch

BTW, I've already updated the patch for version 3.5.0 - attached it.
               

> 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, SOLR-2472_3.5.0.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: [hidden email]
For additional commands, e-mail: [hidden email]