{"action":"created","issue":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch-dsl-py/issues/91","labels_url":"https://api.github.com/repos/elasticsearch/elasticsearch-dsl-py/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/elasticsearch/elasticsearch-dsl-py/issues/91/comments","events_url":"https://api.github.com/repos/elasticsearch/elasticsearch-dsl-py/issues/91/events","html_url":"https://github.com/elasticsearch/elasticsearch-dsl-py/issues/91","id":60187249,"number":91,"title":"Problem with .query() (using match with field) and Match","user":{"login":"goodrichj","id":1440740,"avatar_url":"https://avatars.githubusercontent.com/u/1440740?v=3","gravatar_id":"","url":"https://api.github.com/users/goodrichj","html_url":"https://github.com/goodrichj","followers_url":"https://api.github.com/users/goodrichj/followers","following_url":"https://api.github.com/users/goodrichj/following{/other_user}","gists_url":"https://api.github.com/users/goodrichj/gists{/gist_id}","starred_url":"https://api.github.com/users/goodrichj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodrichj/subscriptions","organizations_url":"https://api.github.com/users/goodrichj/orgs","repos_url":"https://api.github.com/users/goodrichj/repos","events_url":"https://api.github.com/users/goodrichj/events{/privacy}","received_events_url":"https://api.github.com/users/goodrichj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-07T03:03:28Z","updated_at":"2015-03-07T03:44:33Z","closed_at":null,"body":"I'm having a lot of trouble with what the docs describe here:\r\nhttp://elasticsearch-dsl.readthedocs.org/en/latest/search_dsl.html#queries\r\n\r\n```python\r\nfrom elasticsearch_dsl import Match\r\n```\r\nMatch doesn't import for me.\r\n\r\n```python\r\ns = s.query('match', query='python django', field='title', operator='or')\r\n```\r\nI get an error trying to execute anything using this pattern:\r\n\r\nquery('match', query='something', field='somefield')\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch-dsl-py/issues/comments/77671530","html_url":"https://github.com/elasticsearch/elasticsearch-dsl-py/issues/91#issuecomment-77671530","issue_url":"https://api.github.com/repos/elasticsearch/elasticsearch-dsl-py/issues/91","id":77671530,"user":{"login":"HonzaKral","id":32132,"avatar_url":"https://avatars.githubusercontent.com/u/32132?v=3","gravatar_id":"","url":"https://api.github.com/users/HonzaKral","html_url":"https://github.com/HonzaKral","followers_url":"https://api.github.com/users/HonzaKral/followers","following_url":"https://api.github.com/users/HonzaKral/following{/other_user}","gists_url":"https://api.github.com/users/HonzaKral/gists{/gist_id}","starred_url":"https://api.github.com/users/HonzaKral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HonzaKral/subscriptions","organizations_url":"https://api.github.com/users/HonzaKral/orgs","repos_url":"https://api.github.com/users/HonzaKral/repos","events_url":"https://api.github.com/users/HonzaKral/events{/privacy}","received_events_url":"https://api.github.com/users/HonzaKral/received_events","type":"User","site_admin":false},"created_at":"2015-03-07T03:44:32Z","updated_at":"2015-03-07T03:44:32Z","body":"I am sorry, the documentation is wrong, it should be:\r\n\r\n    query('match', somefield={'query': 'something', 'operator': 'or'})\r\n\r\nit always copies very closely the json dsl. Will push a fix to the docs asap."}}