{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/928","repository_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py","labels_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/928/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/928/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/928/events","html_url":"https://github.com/elastic/elasticsearch-dsl-py/issues/928","id":337693956,"node_id":"MDU6SXNzdWUzMzc2OTM5NTY=","number":928,"title":"Filtering by date using dsl-py","user":{"login":"admitstack","id":29341874,"node_id":"MDQ6VXNlcjI5MzQxODc0","avatar_url":"https://avatars0.githubusercontent.com/u/29341874?v=4","gravatar_id":"","url":"https://api.github.com/users/admitstack","html_url":"https://github.com/admitstack","followers_url":"https://api.github.com/users/admitstack/followers","following_url":"https://api.github.com/users/admitstack/following{/other_user}","gists_url":"https://api.github.com/users/admitstack/gists{/gist_id}","starred_url":"https://api.github.com/users/admitstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/admitstack/subscriptions","organizations_url":"https://api.github.com/users/admitstack/orgs","repos_url":"https://api.github.com/users/admitstack/repos","events_url":"https://api.github.com/users/admitstack/events{/privacy}","received_events_url":"https://api.github.com/users/admitstack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-02T23:17:03Z","updated_at":"2018-07-02T23:17:03Z","closed_at":null,"author_association":"NONE","body":"`count = 0\r\n\tclient = Elasticsearch(url, http_auth = (username, password), verify_certs = False)\r\n\ts = Search(using=client, index = set_index).source(['metadata.Year'])`\r\n\r\nAs seen in the code above, my dates are listed in the metadata.Year. I would like to be able to return the number of results in a specific year. I am thinking of using .filter but not sure what the best option is. Also, I don't know if the values in the column are in datetime format, or if they are just strings. "}}
{"actor":{"display_login":"admitstack"}}