{"action":"created","issue":{"url":"https://api.github.com/repos/sksamuel/elastic4s/issues/291","labels_url":"https://api.github.com/repos/sksamuel/elastic4s/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/sksamuel/elastic4s/issues/291/comments","events_url":"https://api.github.com/repos/sksamuel/elastic4s/issues/291/events","html_url":"https://github.com/sksamuel/elastic4s/issues/291","id":64140817,"number":291,"title":"rawAggregators as rawQuery?","user":{"login":"bplsilva","id":472739,"avatar_url":"https://avatars.githubusercontent.com/u/472739?v=3","gravatar_id":"","url":"https://api.github.com/users/bplsilva","html_url":"https://github.com/bplsilva","followers_url":"https://api.github.com/users/bplsilva/followers","following_url":"https://api.github.com/users/bplsilva/following{/other_user}","gists_url":"https://api.github.com/users/bplsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/bplsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bplsilva/subscriptions","organizations_url":"https://api.github.com/users/bplsilva/orgs","repos_url":"https://api.github.com/users/bplsilva/repos","events_url":"https://api.github.com/users/bplsilva/events{/privacy}","received_events_url":"https://api.github.com/users/bplsilva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-25T01:09:00Z","updated_at":"2015-05-26T19:22:15Z","closed_at":null,"body":"Hello,\r\nIs it somehow possible to enter a JSON with custom aggregators as rawAggregators, as it is possible to do for the body of the query?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/sksamuel/elastic4s/issues/comments/105640693","html_url":"https://github.com/sksamuel/elastic4s/issues/291#issuecomment-105640693","issue_url":"https://api.github.com/repos/sksamuel/elastic4s/issues/291","id":105640693,"user":{"login":"bplsilva","id":472739,"avatar_url":"https://avatars.githubusercontent.com/u/472739?v=3","gravatar_id":"","url":"https://api.github.com/users/bplsilva","html_url":"https://github.com/bplsilva","followers_url":"https://api.github.com/users/bplsilva/followers","following_url":"https://api.github.com/users/bplsilva/following{/other_user}","gists_url":"https://api.github.com/users/bplsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/bplsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bplsilva/subscriptions","organizations_url":"https://api.github.com/users/bplsilva/orgs","repos_url":"https://api.github.com/users/bplsilva/repos","events_url":"https://api.github.com/users/bplsilva/events{/privacy}","received_events_url":"https://api.github.com/users/bplsilva/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T19:22:15Z","updated_at":"2015-05-26T19:22:15Z","body":"Hello @sksamuel,\r\n\r\nThank you very much for adding such a feature.\r\nIn my particular case, we already use the aggregations a lot in the project I work on, however there was a need from the people that generate and modify the queries to be able to define the aggregators dynamically, by simply modifying the json of the aggregations in the project.\r\n\r\nI also have studied the aggregations DSL in depth after having asked my question, based on the samples in the project. We were not able to represent via DSL the aggregations of the example I have used in the first post, in the part of ordering stuff by a custom comparator:\r\n\r\n```\r\n\"order\": {\"by_labelsWeights>by_weightsSum\" : \"desc\"}\r\n```\r\nHow would it be possible to do so using the aggregations DSL?\r\n\r\nAnyway, thank you very much once again for this feature!"}}