{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/16934","repository_url":"https://api.github.com/repos/elastic/elasticsearch","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/16934/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/16934/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/16934/events","html_url":"https://github.com/elastic/elasticsearch/pull/16934","id":138236281,"number":16934,"title":"Allow to configure analyzers on keyword fields.","user":{"login":"jpountz","id":299848,"avatar_url":"https://avatars.githubusercontent.com/u/299848?v=3","gravatar_id":"","url":"https://api.github.com/users/jpountz","html_url":"https://github.com/jpountz","followers_url":"https://api.github.com/users/jpountz/followers","following_url":"https://api.github.com/users/jpountz/following{/other_user}","gists_url":"https://api.github.com/users/jpountz/gists{/gist_id}","starred_url":"https://api.github.com/users/jpountz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpountz/subscriptions","organizations_url":"https://api.github.com/users/jpountz/orgs","repos_url":"https://api.github.com/users/jpountz/repos","events_url":"https://api.github.com/users/jpountz/events{/privacy}","received_events_url":"https://api.github.com/users/jpountz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Mapping","name":":Mapping","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/enhancement","name":"enhancement","color":"4a4ea8"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/review","name":"review","color":"0052cc"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v5.0.0","name":"v5.0.0","color":"dddddd"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-03-03T16:57:56Z","updated_at":"2016-03-03T17:58:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/16934","html_url":"https://github.com/elastic/elasticsearch/pull/16934","diff_url":"https://github.com/elastic/elasticsearch/pull/16934.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/16934.patch"},"body":"This commit allows an analyzer to be configured on a keyword field. The analyzer\r\nmust generate exactly one token for any input string. This is not something that\r\ncan be checked easily so the approach I used is to run the analyzer on a couple\r\ntest inputs and check that it generates one token as expected.\r\n\r\nOne expected use-case for this feature is to normalize case, so for ease of use\r\nI made `lowercase` a built-in analyzer which puts a lowercase filter on top of\r\na keyword tokenizer."},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/191887657","html_url":"https://github.com/elastic/elasticsearch/pull/16934#issuecomment-191887657","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/16934","id":191887657,"user":{"login":"dakrone","id":19060,"avatar_url":"https://avatars.githubusercontent.com/u/19060?v=3","gravatar_id":"","url":"https://api.github.com/users/dakrone","html_url":"https://github.com/dakrone","followers_url":"https://api.github.com/users/dakrone/followers","following_url":"https://api.github.com/users/dakrone/following{/other_user}","gists_url":"https://api.github.com/users/dakrone/gists{/gist_id}","starred_url":"https://api.github.com/users/dakrone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dakrone/subscriptions","organizations_url":"https://api.github.com/users/dakrone/orgs","repos_url":"https://api.github.com/users/dakrone/repos","events_url":"https://api.github.com/users/dakrone/events{/privacy}","received_events_url":"https://api.github.com/users/dakrone/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T17:58:57Z","updated_at":"2016-03-03T17:58:57Z","body":"+1, that sounds great!"}}