lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Khludnev (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-7743) Facet Pivot Result Parsing
Date Wed, 01 Jul 2015 08:59:04 GMT

    [ 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


Mime
View raw message