{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/932","repository_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py","labels_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/932/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/932/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/932/events","html_url":"https://github.com/elastic/elasticsearch-dsl-py/issues/932","id":338001398,"node_id":"MDU6SXNzdWUzMzgwMDEzOTg=","number":932,"title":"Trouble filtering on date","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":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-03T18:02:10Z","updated_at":"2018-07-03T21:07:08Z","closed_at":"2018-07-03T18:04:57Z","author_association":"NONE","body":"I have an index called private_data, with documents such as exact.date, name, etc. The data type in exact.date is date. \r\n\r\nMy code right now is\r\n`s = Search(using=client, index = ['private_data']).source(['exact.date']).query(\"match\",date= (datetime.date.today()))`\r\n\r\nThe problem is the format of the exact.date documents is for example 2018-07-02T06:55:55.569Z, whereas datetime is in the format month-day-year. Is datetime still the best option to use in this scenario?"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/comments/402292056","html_url":"https://github.com/elastic/elasticsearch-dsl-py/issues/932#issuecomment-402292056","issue_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/932","id":402292056,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjI5MjA1Ng==","user":{"login":"HonzaKral","id":32132,"node_id":"MDQ6VXNlcjMyMTMy","avatar_url":"https://avatars0.githubusercontent.com/u/32132?v=4","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":"2018-07-03T21:07:08Z","updated_at":"2018-07-03T21:07:08Z","author_association":"MEMBER","body":"I cannot help you if you don't share the traceback. Could it be that I omitted the imports from my example? `from datetime import date, timedelta`"}}
{"actor":{"display_login":"HonzaKral"}}