{"action":"created","issue":{"url":"https://api.github.com/repos/FoolCode/SphinxQL-Query-Builder/issues/47","labels_url":"https://api.github.com/repos/FoolCode/SphinxQL-Query-Builder/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/FoolCode/SphinxQL-Query-Builder/issues/47/comments","events_url":"https://api.github.com/repos/FoolCode/SphinxQL-Query-Builder/issues/47/events","html_url":"https://github.com/FoolCode/SphinxQL-Query-Builder/pull/47","id":57788926,"number":47,"title":"Resultset","user":{"login":"vizzent","id":2341546,"avatar_url":"https://avatars.githubusercontent.com/u/2341546?v=3","gravatar_id":"","url":"https://api.github.com/users/vizzent","html_url":"https://github.com/vizzent","followers_url":"https://api.github.com/users/vizzent/followers","following_url":"https://api.github.com/users/vizzent/following{/other_user}","gists_url":"https://api.github.com/users/vizzent/gists{/gist_id}","starred_url":"https://api.github.com/users/vizzent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vizzent/subscriptions","organizations_url":"https://api.github.com/users/vizzent/orgs","repos_url":"https://api.github.com/users/vizzent/repos","events_url":"https://api.github.com/users/vizzent/events{/privacy}","received_events_url":"https://api.github.com/users/vizzent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-02-16T10:43:16Z","updated_at":"2015-02-18T17:36:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/FoolCode/SphinxQL-Query-Builder/pulls/47","html_url":"https://github.com/FoolCode/SphinxQL-Query-Builder/pull/47","diff_url":"https://github.com/FoolCode/SphinxQL-Query-Builder/pull/47.diff","patch_url":"https://github.com/FoolCode/SphinxQL-Query-Builder/pull/47.patch"},"body":"Create a Facet object to use in SphinxQL:\r\n\r\n$facet = Facet::create($conn)->facet('category')->orderByFunction('COUNT', '*', ASC)->limit(5,5);\r\n\r\n$sphinxQL->facet($facet);\r\n$facet2 = Facet::create($conn)->facet(array('type' => 'idType'))->by('idType')->orderByFunction('COUNT', array('*'), DESC);\r\n\r\n$sphinxQL->facet($facet2);\r\n$facet3 = Facet::create($conn)->facetFunction('INTERVAL, array('price',200,400,600,800)));\r\n\r\n$sphinxQL->facet($facet3);"},"comment":{"url":"https://api.github.com/repos/FoolCode/SphinxQL-Query-Builder/issues/comments/74908795","html_url":"https://github.com/FoolCode/SphinxQL-Query-Builder/pull/47#issuecomment-74908795","issue_url":"https://api.github.com/repos/FoolCode/SphinxQL-Query-Builder/issues/47","id":74908795,"user":{"login":"oohnoitz","id":916311,"avatar_url":"https://avatars.githubusercontent.com/u/916311?v=3","gravatar_id":"","url":"https://api.github.com/users/oohnoitz","html_url":"https://github.com/oohnoitz","followers_url":"https://api.github.com/users/oohnoitz/followers","following_url":"https://api.github.com/users/oohnoitz/following{/other_user}","gists_url":"https://api.github.com/users/oohnoitz/gists{/gist_id}","starred_url":"https://api.github.com/users/oohnoitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oohnoitz/subscriptions","organizations_url":"https://api.github.com/users/oohnoitz/orgs","repos_url":"https://api.github.com/users/oohnoitz/repos","events_url":"https://api.github.com/users/oohnoitz/events{/privacy}","received_events_url":"https://api.github.com/users/oohnoitz/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T17:36:08Z","updated_at":"2015-02-18T17:36:08Z","body":"I looked at some other examples written for `FACET` implementation and it appears that is correct. You should get the results in the following order.\r\n\r\n- ResultSet 1: Documents\r\n- ResultSet 2: FACET Query 1\r\n- ResultSet 3: FACET Query 2\r\n- and so on..."}}