You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2015/08/13 16:04:47 UTC

[jira] [Assigned] (SOLR-7922) JSON API facet doesnt return facet with attribute that equals to 0

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

Yonik Seeley reassigned SOLR-7922:
----------------------------------

    Assignee: Yonik Seeley

> JSON API facet doesnt return facet with attribute that equals to 0
> ------------------------------------------------------------------
>
>                 Key: SOLR-7922
>                 URL: https://issues.apache.org/jira/browse/SOLR-7922
>             Project: Solr
>          Issue Type: Bug
>          Components: Facet Module
>    Affects Versions: 5.3
>            Reporter: Yaniv Hemi
>            Assignee: Yonik Seeley
>            Priority: Critical
>              Labels: facet, json, jsonapi
>
> regular facet returns  "0",33739, but JSON Facet API returns all values and counts without "0".
> see the example:
> {code:json}
> {
>   "responseHeader":{
>     "status":0,
>     "QTime":9,
>     "params":{
>       "q":"*:*",
>       "json.facet":"{\n\tfacetForMeta_i_interactionSentiment: {\t\t\ntype : terms, \n\t\tfield : Meta_i_interactionSentiment\n\t}\n}",
>       "facet.field":"Meta_i_interactionSentiment",
>       "indent":"true",
>       "fq":["channel:TelcoDefaultChannel",
>         "content_type:PARENT"],
>       "rows":"0",
>       "wt":"json",
>       "facet":"true"}},
>   "response":{"numFound":167857,"start":0,"maxScore":1.0,"docs":[]
>   },
>   "facet_counts":{
>     "facet_queries":{},
>     "facet_fields":{
>       "Meta_i_interactionSentiment":[
>         "-1",33743,
>         "0",33739,
>         "-2",33499,
>         "2",33451,
>         "1",33425]},
>     "facet_dates":{},
>     "facet_ranges":{},
>     "facet_intervals":{},
>     "facet_heatmaps":{}},
>   "facets":{
>     "count":167857,
>     "facetForMeta_i_interactionSentiment":{
>       "buckets":[{
>           "val":-1,
>           "count":33743},
>         {
>           "val":-2,
>           "count":33499},
>         {
>           "val":2,
>           "count":33451},
>         {
>           "val":1,
>           "count":33425}]}}}
> {code}



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