{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/kibana/issues/8164","repository_url":"https://api.github.com/repos/elastic/kibana","labels_url":"https://api.github.com/repos/elastic/kibana/issues/8164/labels{/name}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/8164/comments","events_url":"https://api.github.com/repos/elastic/kibana/issues/8164/events","html_url":"https://github.com/elastic/kibana/issues/8164","id":175270478,"number":8164,"title":"filtering on null field causes an error","user":{"login":"scampi","id":795879,"avatar_url":"https://avatars.githubusercontent.com/u/795879?v=3","gravatar_id":"","url":"https://api.github.com/users/scampi","html_url":"https://github.com/scampi","followers_url":"https://api.github.com/users/scampi/followers","following_url":"https://api.github.com/users/scampi/following{/other_user}","gists_url":"https://api.github.com/users/scampi/gists{/gist_id}","starred_url":"https://api.github.com/users/scampi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scampi/subscriptions","organizations_url":"https://api.github.com/users/scampi/orgs","repos_url":"https://api.github.com/users/scampi/repos","events_url":"https://api.github.com/users/scampi/events{/privacy}","received_events_url":"https://api.github.com/users/scampi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-06T15:01:26Z","updated_at":"2016-09-06T15:01:26Z","closed_at":null,"body":"**Kibana version**: master\r\n\r\n**Elasticsearch version**: master\r\n\r\n**Server OS version**: Linux 4.7.2-1\r\n\r\n**Browser version**: Chrome Version 53.0.2785.89 (64-bit)\r\n\r\n**Browser OS version**: Linux 4.7.2-1\r\n\r\n**Original install method (e.g. download page, yum, from source, etc.)**: from source\r\n\r\n**Description of the problem including expected versus actual behavior**:\r\n\r\nClicking the + loop `filter for value` when the field's value is NULL throws an error:\r\n\r\n![2016-09-06-154151_1899x793_scrot](https://cloud.githubusercontent.com/assets/795879/18278440/0cf22d8c-744a-11e6-989a-e90c98e3e293.png)\r\n\r\n**Steps to reproduce**:\r\n\r\n 1. Add data\r\n\r\n ```sh\r\n$ curl -XPOST 'localhost:9200/city/City' -d '\r\n{\r\n   \"bornIn\": null,\r\n   \"person\": \"john\"\r\n}\r\n'\r\n$ curl -XPOST 'localhost:9200/city/City' -d '\r\n{\r\n   \"bornIn\": \"past\",\r\n   \"person\": \"connor\"\r\n}\r\n'\r\n ```\r\n\r\n 2. click on the `Filter for value` lense icon for the first document (value of `bornIn` is null)\r\n 3. you get the error `unknown token [VALUE_NULL] after [query]`"}}
{"actor":{"display_login":"scampi"}}