{"action":"opened","issue":{"url":"https://api.github.com/repos/solariumphp/solarium/issues/378","labels_url":"https://api.github.com/repos/solariumphp/solarium/issues/378/labels{/name}","comments_url":"https://api.github.com/repos/solariumphp/solarium/issues/378/comments","events_url":"https://api.github.com/repos/solariumphp/solarium/issues/378/events","html_url":"https://github.com/solariumphp/solarium/issues/378","id":119989466,"number":378,"title":"JSON Facet API","user":{"login":"jr-ewing","id":192153,"avatar_url":"https://avatars.githubusercontent.com/u/192153?v=3","gravatar_id":"","url":"https://api.github.com/users/jr-ewing","html_url":"https://github.com/jr-ewing","followers_url":"https://api.github.com/users/jr-ewing/followers","following_url":"https://api.github.com/users/jr-ewing/following{/other_user}","gists_url":"https://api.github.com/users/jr-ewing/gists{/gist_id}","starred_url":"https://api.github.com/users/jr-ewing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jr-ewing/subscriptions","organizations_url":"https://api.github.com/users/jr-ewing/orgs","repos_url":"https://api.github.com/users/jr-ewing/repos","events_url":"https://api.github.com/users/jr-ewing/events{/privacy}","received_events_url":"https://api.github.com/users/jr-ewing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-02T17:04:52Z","updated_at":"2015-12-02T17:04:52Z","closed_at":null,"body":"Is there a support for JSON Facet API for Solarium 3.x available ?\r\n\r\nSee http://yonik.com/json-facet-api/\r\n\r\n$ curl http://localhost:8983/solr/query -d 'q=*:*&rows=0&\r\n json.facet={\r\n   categories:{\r\n     type : terms,\r\n     field : cat,\r\n     sort : { x : desc},\r\n     facet:{\r\n       x : \"avg(price)\",\r\n       y : \"sum(price)\"\r\n     }\r\n   }\r\n }\r\n\r\nOr can this be done by $query->addParam ?\r\n\r\nbest regards\r\nTom"}}