[ https://issues.apache.org/jira/browse/SOLR-7922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yonik Seeley resolved SOLR-7922. -------------------------------- Resolution: Fixed Fix Version/s: 5.4 > 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 > Fix For: 5.4 > > Attachments: SOLR-7922.patch > > > 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.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org