{"action":"opened","issue":{"url":"https://api.github.com/repos/ruflin/Elastica/issues/1247","repository_url":"https://api.github.com/repos/ruflin/Elastica","labels_url":"https://api.github.com/repos/ruflin/Elastica/issues/1247/labels{/name}","comments_url":"https://api.github.com/repos/ruflin/Elastica/issues/1247/comments","events_url":"https://api.github.com/repos/ruflin/Elastica/issues/1247/events","html_url":"https://github.com/ruflin/Elastica/issues/1247","id":207299355,"number":1247,"title":"Deprecated: Filters are deprecated. Use queries in filter context.","user":{"login":"iamfinky","id":1159501,"avatar_url":"https://avatars.githubusercontent.com/u/1159501?v=3","gravatar_id":"","url":"https://api.github.com/users/iamfinky","html_url":"https://github.com/iamfinky","followers_url":"https://api.github.com/users/iamfinky/followers","following_url":"https://api.github.com/users/iamfinky/following{/other_user}","gists_url":"https://api.github.com/users/iamfinky/gists{/gist_id}","starred_url":"https://api.github.com/users/iamfinky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamfinky/subscriptions","organizations_url":"https://api.github.com/users/iamfinky/orgs","repos_url":"https://api.github.com/users/iamfinky/repos","events_url":"https://api.github.com/users/iamfinky/events{/privacy}","received_events_url":"https://api.github.com/users/iamfinky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-13T18:23:21Z","updated_at":"2017-02-13T18:23:21Z","closed_at":null,"body":"So following an upgrade to Elastica 3.2.3, a bunch of my queries are failing because I'm using \\Elastica\\Filter\\BoolAnd() which has been deprecated in favour of using queries in filter context.\r\n\r\nHowever, there appear to be no examples or documentation on how to do this other than creating the JSON for the queries by hand.\r\n\r\nCan anyone provide an example of how to convert an 'old' \\Elastica\\Query which uses setPostFilter or setFilter to the new \"filter context\" form please?"}}
{"actor":{"display_login":"iamfinky"}}