You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (Created) (JIRA)" <ji...@apache.org> on 2011/12/20 03:01:32 UTC

[jira] [Created] (SOLR-2981) multiple stats.facet params duplicate stats faceting output

multiple stats.facet params duplicate stats faceting output
-----------------------------------------------------------

                 Key: SOLR-2981
                 URL: https://issues.apache.org/jira/browse/SOLR-2981
             Project: Solr
          Issue Type: Bug
    Affects Versions: 3.5
            Reporter: Hoss Man


* Load the example data
* Load a URL that uses "stats.facet" on multiple fields, ie: http://localhost:8983/solr/select?q=*:*&stats=true&stats.field=price&stats.field=popularity&stats.twopass=true&rows=00&indent=true&stats.facet=inStock&stats.facet=manu_id_s

Response will include two identical "facets" lists for each stats field (ie both "facets" blocks will contain the faceted stats for both of the stats.facet fields)

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


[jira] [Commented] (SOLR-2981) multiple stats.facet params duplicate stats faceting output

Posted by "Hoss Man (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13172845#comment-13172845 ] 

Hoss Man commented on SOLR-2981:
--------------------------------

Example...

http://localhost:8983/solr/select?wt=json&indent=true&q=*:*&stats=true&stats.field=price&stats.field=popularity&stats.twopass=true&rows=00&indent=true&stats.facet=inStock&stats.facet=manu_id_s

{code}
{
  "responseHeader":{
    "status":0,
    "QTime":1,
    "params":{
      "indent":["true",
        "true"],
      "q":"*:*",
      "stats":"true",
      "stats.field":["price",
        "popularity"],
      "stats.facet":["inStock",
        "manu_id_s"],
      "wt":"json",
      "stats.twopass":"true",
      "rows":"00"}},
  "response":{"numFound":17,"start":0,"docs":[]
  },
  "stats":{
    "stats_fields":{
      "price":{
        "min":0.0,
        "max":2199.0,
        "count":16,
        "missing":1,
        "sum":5251.2699999999995,
        "sumOfSquares":6038619.160300001,
        "mean":328.20437499999997,
        "stddev":536.3536999650977,
        "facets":{
          "manu_id_s":{},
          "inStock":{
            "false":{
              "min":11.5,
              "max":649.99,
              "count":4,
              "missing":0,
              "sum":1161.3899999999999,
              "sumOfSquares":653369.2551,
              "mean":290.34749999999997,
              "stddev":324.6344467628166},
            "true":{
              "min":0.0,
              "max":2199.0,
              "count":12,
              "missing":1,
              "sum":4089.88,
              "sumOfSquares":5385249.905200001,
              "mean":340.8233333333333,
              "stddev":602.368308555086}}},
        "facets":{
          "manu_id_s":{},
          "inStock":{
            "false":{
              "min":11.5,
              "max":649.99,
              "count":4,
              "missing":0,
              "sum":1161.3899999999999,
              "sumOfSquares":653369.2551,
              "mean":290.34749999999997,
              "stddev":324.6344467628166},
            "true":{
              "min":0.0,
              "max":2199.0,
              "count":12,
              "missing":1,
              "sum":4089.88,
              "sumOfSquares":5385249.905200001,
              "mean":340.8233333333333,
              "stddev":602.368308555086}}}},
      "popularity":{
        "min":0.0,
        "max":10.0,
        "count":15,
        "missing":2,
        "sum":85.0,
        "sumOfSquares":603.0,
        "mean":5.666666666666667,
        "stddev":2.943920288775949,
        "facets":{
          "manu_id_s":{},
          "inStock":{
            "false":{
              "min":1.0,
              "max":7.0,
              "count":4,
              "missing":0,
              "sum":16.0,
              "sumOfSquares":100.0,
              "mean":4.0,
              "stddev":3.4641016151377544},
            "true":{
              "min":0.0,
              "max":10.0,
              "count":11,
              "missing":2,
              "sum":69.0,
              "sumOfSquares":503.0,
              "mean":6.2727272727272725,
              "stddev":2.6491851234260353}}},
        "facets":{
          "manu_id_s":{},
          "inStock":{
            "false":{
              "min":1.0,
              "max":7.0,
              "count":4,
              "missing":0,
              "sum":16.0,
              "sumOfSquares":100.0,
              "mean":4.0,
              "stddev":3.4641016151377544},
            "true":{
              "min":0.0,
              "max":10.0,
              "count":11,
              "missing":2,
              "sum":69.0,
              "sumOfSquares":503.0,
              "mean":6.2727272727272725,
              "stddev":2.6491851234260353}}}}}}}
{code}
                
> multiple stats.facet params duplicate stats faceting output
> -----------------------------------------------------------
>
>                 Key: SOLR-2981
>                 URL: https://issues.apache.org/jira/browse/SOLR-2981
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.5
>            Reporter: Hoss Man
>
> * Load the example data
> * Load a URL that uses "stats.facet" on multiple fields, ie: http://localhost:8983/solr/select?q=*:*&stats=true&stats.field=price&stats.field=popularity&stats.twopass=true&rows=00&indent=true&stats.facet=inStock&stats.facet=manu_id_s
> Response will include two identical "facets" lists for each stats field (ie both "facets" blocks will contain the faceted stats for both of the stats.facet fields)

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