{"action":"created","issue":{"url":"https://api.github.com/repos/moonlitesolutions/SolrClient/issues/33","repository_url":"https://api.github.com/repos/moonlitesolutions/SolrClient","labels_url":"https://api.github.com/repos/moonlitesolutions/SolrClient/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/moonlitesolutions/SolrClient/issues/33/comments","events_url":"https://api.github.com/repos/moonlitesolutions/SolrClient/issues/33/events","html_url":"https://github.com/moonlitesolutions/SolrClient/issues/33","id":180847776,"number":33,"title":"Facet query with \"facet.sort\": \"count\" not returning sorted facets","user":{"login":"Kerruba","id":2854782,"avatar_url":"https://avatars.githubusercontent.com/u/2854782?v=3","gravatar_id":"","url":"https://api.github.com/users/Kerruba","html_url":"https://github.com/Kerruba","followers_url":"https://api.github.com/users/Kerruba/followers","following_url":"https://api.github.com/users/Kerruba/following{/other_user}","gists_url":"https://api.github.com/users/Kerruba/gists{/gist_id}","starred_url":"https://api.github.com/users/Kerruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kerruba/subscriptions","organizations_url":"https://api.github.com/users/Kerruba/orgs","repos_url":"https://api.github.com/users/Kerruba/repos","events_url":"https://api.github.com/users/Kerruba/events{/privacy}","received_events_url":"https://api.github.com/users/Kerruba/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-04T09:41:38Z","updated_at":"2016-10-07T19:16:19Z","closed_at":"2016-10-07T19:16:19Z","body":"Hello,\r\nI'm trying to submit this query to Solr Core with SolrClient, but the expected result object doesn't match the query since keys are not sorted by facet count. \r\nHere the query object passed to SolrClient:\r\n```python\r\nonto_suggest = solr.query('merged', {\r\n\t\"q\": \"*:*\",\r\n\t\"rows\": 0,\r\n\t\"facet\": True,\r\n\t\"facet.field\": \"onto_suggest\",\r\n\t\"facet.sort\": \"count\",\r\n\t\"facet.limit\": -1,\r\n\t\"facet.mincount\": 2\r\n})\r\n```\r\nI've also tried to use \"facet.count\" to sort, same result.\r\nHere an excerpt of the result\r\n```python\r\n{\r\n  \"onto_suggest\": {\r\n    \"Arthrobacter siderocapsulatus\": 433,\r\n    \"Enterobacter aglomerans\": 39,\r\n    \"Genetic endocrine tumor\": 32,\r\n    \"ETOP\": 15,\r\n    \"lymphoid lineage restricted progenitor cell\": 47,\r\n    \"Escherichia coli O157:H7 EDL933\": 127,\r\n    \"deferoxaminum\": 2,\r\n    \"Bacillus francki\": 472,\r\n    \"srf\": 9,\r\n    \"Malignant Peripheral Nerve Sheath Tumors\": 9,\r\n    \"Pancreas Cancer\": 122,\r\n```"},"comment":{"url":"https://api.github.com/repos/moonlitesolutions/SolrClient/issues/comments/252337921","html_url":"https://github.com/moonlitesolutions/SolrClient/issues/33#issuecomment-252337921","issue_url":"https://api.github.com/repos/moonlitesolutions/SolrClient/issues/33","id":252337921,"user":{"login":"nickvasilyev","id":8037070,"avatar_url":"https://avatars.githubusercontent.com/u/8037070?v=3","gravatar_id":"","url":"https://api.github.com/users/nickvasilyev","html_url":"https://github.com/nickvasilyev","followers_url":"https://api.github.com/users/nickvasilyev/followers","following_url":"https://api.github.com/users/nickvasilyev/following{/other_user}","gists_url":"https://api.github.com/users/nickvasilyev/gists{/gist_id}","starred_url":"https://api.github.com/users/nickvasilyev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickvasilyev/subscriptions","organizations_url":"https://api.github.com/users/nickvasilyev/orgs","repos_url":"https://api.github.com/users/nickvasilyev/repos","events_url":"https://api.github.com/users/nickvasilyev/events{/privacy}","received_events_url":"https://api.github.com/users/nickvasilyev/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T19:16:19Z","updated_at":"2016-10-07T19:16:19Z","body":"Thanks for the feedback. \r\n\r\nThat option is used by Solr to select what data to return. If you have 100 values, but you are only pulling out 10; the sorting will determine which 10 it is. "}}
{"actor":{"display_login":"nickvasilyev"}}