You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mikhail Khludnev (JIRA)" <ji...@apache.org> on 2015/07/01 10:59:04 UTC

[jira] [Commented] (SOLR-7743) Facet Pivot Result Parsing

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

Mikhail Khludnev commented on SOLR-7743:
----------------------------------------

It does it quite well eg
{code}
import org.apache.solr.client.solrj.response.FacetField;
import org.apache.solr.client.solrj.response.PivotField;
import org.apache.solr.client.solrj.response.QueryResponse;
...
final List<PivotField> pivotList = resp
                    .getFacetPivot().get(pivotFieldNamesCommas);
 for(final PivotField columnPivotField : pivotList ){
  for(final PivotField rowPivot : columnPivotField.getPivot()){
... etc
}
{code}

> Facet Pivot Result Parsing
> --------------------------
>
>                 Key: SOLR-7743
>                 URL: https://issues.apache.org/jira/browse/SOLR-7743
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrJ
>    Affects Versions: 5.2.1
>            Reporter: Alessandro Benedetti
>            Priority: Minor
>              Labels: facet, facet-pivot, queryResponse, solrj
>
> Currently SolrJ is not parsing the Facet Pivot response.
> It would be nice to wrap that part of the response in nice recursive objects :
> …
>  "facet_pivot":{
>       "cat,popularity,inStock":[{
>           "field":"cat",
>           "value":"electronics",
>           "count":14,
>           "pivot":[{
>               "field":"popularity",
>               "value":6,
>               "count":5,
>               "pivot":[{
>                   "field":"inStock",
>                   "value":true,
>                   "count":5}]},
> ...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org