Re: how to retrieve json facet using solrj

2016-04-25 Thread Georg Sorst
Hi Yangrui, from what I've gathered the JSON Facets are not supported in SolrJ yet, so you need to manually work with the response, ie.: response.getResponse().get("facets") Best, Georg Yangrui Guo schrieb am So., 24. Apr. 2016 um 22:13 Uhr: > Hello > > I use json facet api to get facets. The

how to retrieve json facet using solrj

2016-04-24 Thread Yangrui Guo
Hello I use json facet api to get facets. The response returned with facets and counts However, when I called the getFacetFields method in SolrJ client, I got null results. How can I get the facet results from solrj? I set my query as query.setParam("json.facet", "{entities : {type: terms,field: c