{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/302","labels_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/302/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/302/events","html_url":"https://github.com/elastic/elasticsearch-dsl-py/issues/302","id":117761372,"number":302,"title":"How to select specific fields in search query","user":{"login":"vi3k6i5","id":3116482,"avatar_url":"https://avatars.githubusercontent.com/u/3116482?v=3","gravatar_id":"","url":"https://api.github.com/users/vi3k6i5","html_url":"https://github.com/vi3k6i5","followers_url":"https://api.github.com/users/vi3k6i5/followers","following_url":"https://api.github.com/users/vi3k6i5/following{/other_user}","gists_url":"https://api.github.com/users/vi3k6i5/gists{/gist_id}","starred_url":"https://api.github.com/users/vi3k6i5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vi3k6i5/subscriptions","organizations_url":"https://api.github.com/users/vi3k6i5/orgs","repos_url":"https://api.github.com/users/vi3k6i5/repos","events_url":"https://api.github.com/users/vi3k6i5/events{/privacy}","received_events_url":"https://api.github.com/users/vi3k6i5/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-19T07:56:54Z","updated_at":"2015-11-19T08:54:56Z","closed_at":null,"body":"Support is there on Elasticsearch https://www.elastic.co/guide/en/elasticsearch/reference/1.4/search-request-fields.html\r\n\r\nhow to do the same with elasticsearch-dsl-py ??"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/comments/157992946","html_url":"https://github.com/elastic/elasticsearch-dsl-py/issues/302#issuecomment-157992946","issue_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/302","id":157992946,"user":{"login":"korkmaz","id":2089366,"avatar_url":"https://avatars.githubusercontent.com/u/2089366?v=3","gravatar_id":"","url":"https://api.github.com/users/korkmaz","html_url":"https://github.com/korkmaz","followers_url":"https://api.github.com/users/korkmaz/followers","following_url":"https://api.github.com/users/korkmaz/following{/other_user}","gists_url":"https://api.github.com/users/korkmaz/gists{/gist_id}","starred_url":"https://api.github.com/users/korkmaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korkmaz/subscriptions","organizations_url":"https://api.github.com/users/korkmaz/orgs","repos_url":"https://api.github.com/users/korkmaz/repos","events_url":"https://api.github.com/users/korkmaz/events{/privacy}","received_events_url":"https://api.github.com/users/korkmaz/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T08:54:56Z","updated_at":"2015-11-19T08:54:56Z","body":"@vi3k6i5 \r\n```python \r\nfrom elasticsearch_dsl import search\r\nsearch.Search().fields(['fielda', 'fieldb'])\r\n\r\nsearch.Search().partial_fields(foo={\r\n        'include': ['foo.bar.*'],\r\n        'exclude': ['foo.one']\r\n    })\r\n```\r\nhttps://github.com/elastic/elasticsearch-dsl-py/blob/master/test_elasticsearch_dsl/test_search.py#L352\r\nhttps://github.com/elastic/elasticsearch-dsl-py/blob/master/test_elasticsearch_dsl/test_search.py#L393"}}