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

AJ Lemke commented on SOLR-2894:
--------------------------------

Brett,

When looking at the the output of the pivot, the data type has changed from a 
struct to an array. 
Is this the expected behavior or is the data type for each of the pivot facets 
to remain as a struct and I am experiencing a bug? 

Examples:
4.7 pre patch:
{
  field: "cat",
  value: "electronics",
  count: 12,
  pivot: [
    {
      field: "popularity",
      value: 7,
      count: 4
    },
    {
      field: "popularity",
      value: 6,
      count: 3
    },
    {
      field: "popularity",
      value: 1,
      count: 2
    },
    {
      field: "popularity",
      value: 0,
      count: 1
    },
    {
      field: "popularity",
      value: 5,
      count: 1
    },
    {
      field: "popularity",
      value: 10,
      count: 1
    }
  ]
},

Post Patch:
[
  "field",
  "cat",
  "value",
  "electronics",
  "count",
  12,
  "pivot",
  [
    [
      "field",
      "popularity",
      "value",
      7,
      "count",
      4
    ],
    [
      "field",
      "popularity",
      "value",
      6,
      "count",
      3
    ],
    [
      "field",
      "popularity",
      "value",
      1,
      "count",
      2
    ],
    [
      "field",
      "popularity",
      "value",
      0,
      "count",
      1
    ],
    [
      "field",
      "popularity",
      "value",
      5,
      "count",
      1
    ],
    [
      "field",
      "popularity",
      "value",
      10,
      "count",
      1
    ]
  ]
],

> Implement distributed pivot faceting
> ------------------------------------
>
>                 Key: SOLR-2894
>                 URL: https://issues.apache.org/jira/browse/SOLR-2894
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Erik Hatcher
>             Fix For: 4.8
>
>         Attachments: SOLR-2894-reworked.patch, SOLR-2894.patch, 
> SOLR-2894.patch, SOLR-2894.patch, SOLR-2894.patch, SOLR-2894.patch, 
> SOLR-2894.patch, SOLR-2894.patch, SOLR-2894.patch, SOLR-2894.patch, 
> SOLR-2894.patch, SOLR-2894.patch, SOLR-2894.patch, SOLR-2894.patch, 
> SOLR-2894.patch, SOLR-2894.patch, SOLR-2894.patch, SOLR-2894.patch, 
> SOLR-2894.patch, dateToObject.patch
>
>
> Following up on SOLR-792, pivot faceting currently only supports 
> undistributed mode.  Distributed pivot faceting needs to be implemented.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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

Reply via email to