{"action":"opened","issue":{"url":"https://api.github.com/repos/ypereirareis/ypereirareis.github.io/issues/15","labels_url":"https://api.github.com/repos/ypereirareis/ypereirareis.github.io/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/ypereirareis/ypereirareis.github.io/issues/15/comments","events_url":"https://api.github.com/repos/ypereirareis/ypereirareis.github.io/issues/15/events","html_url":"https://github.com/ypereirareis/ypereirareis.github.io/issues/15","id":93796176,"number":15,"title":"Article on how to use scripts fields with FOSElasticaBundle","user":{"login":"ypereirareis","id":6838923,"avatar_url":"https://avatars.githubusercontent.com/u/6838923?v=3","gravatar_id":"","url":"https://api.github.com/users/ypereirareis","html_url":"https://github.com/ypereirareis","followers_url":"https://api.github.com/users/ypereirareis/followers","following_url":"https://api.github.com/users/ypereirareis/following{/other_user}","gists_url":"https://api.github.com/users/ypereirareis/gists{/gist_id}","starred_url":"https://api.github.com/users/ypereirareis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ypereirareis/subscriptions","organizations_url":"https://api.github.com/users/ypereirareis/orgs","repos_url":"https://api.github.com/users/ypereirareis/repos","events_url":"https://api.github.com/users/ypereirareis/events{/privacy}","received_events_url":"https://api.github.com/users/ypereirareis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-08T13:57:25Z","updated_at":"2015-07-08T13:57:25Z","closed_at":null,"body":"https://www.elastic.co/guide/en/elasticsearch/reference/1.6/modules-scripting.html\r\n\r\nhttps://github.com/ruflin/Elastica/blob/2498666e4e038b2abb843e26b5da02f4a7792ca2/test/lib/Elastica/Test/ScriptFieldsTest.php\r\n\r\n```php\r\n$scripts = new \\Elastica\\ScriptFields();\r\n$scripts->addScript('test', new \\Elastica\\Script(\"2 * 2\"));\r\n$this->query->setScriptFields($scripts);\r\n```\r\n\r\n```yml\r\nscript.groovy.sandbox.enabled: true\r\n```"}}