{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/21437","repository_url":"https://api.github.com/repos/elastic/elasticsearch","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/21437/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/21437/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/21437/events","html_url":"https://github.com/elastic/elasticsearch/issues/21437","id":188311803,"number":21437,"title":"Accent search bringing different results on ES 5.0 (compared to ES 2.4)","user":{"login":"evertramos","id":905951,"avatar_url":"https://avatars.githubusercontent.com/u/905951?v=3","gravatar_id":"","url":"https://api.github.com/users/evertramos","html_url":"https://github.com/evertramos","followers_url":"https://api.github.com/users/evertramos/followers","following_url":"https://api.github.com/users/evertramos/following{/other_user}","gists_url":"https://api.github.com/users/evertramos/gists{/gist_id}","starred_url":"https://api.github.com/users/evertramos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evertramos/subscriptions","organizations_url":"https://api.github.com/users/evertramos/orgs","repos_url":"https://api.github.com/users/evertramos/repos","events_url":"https://api.github.com/users/evertramos/events{/privacy}","received_events_url":"https://api.github.com/users/evertramos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-09T17:58:06Z","updated_at":"2016-11-10T10:06:57Z","closed_at":"2016-11-10T09:27:54Z","body":"**Elasticsearch version**: 5.0\r\n\r\n**Plugins installed**: [ingest-attachment]\r\n\r\n**JVM version**: OpenJDK version \"1.8.0_102\"\r\n\r\n**OS version**: boot2docker and Ubuntu 14.0 (docker version of elasticsearch 5.0 container)\r\n\r\n**Description of the problem including expected versus actual behavior**: \r\n\r\nOn the last version of ES (2.4) when using a *brazilian analizer* it would bring all results for an specific query which has accent, example: \r\n\r\nIf I search \"prodigo\" it would bring the result for two words \"prodigo\" and \"pr**ó**digo\" (with accent).\r\n\r\nOn ES 5.0 it does not bring the same result, if you type \"prodigo\" only query for \"prodigo\".\r\n\r\nHere is my configurations:\r\n\r\n```\r\n// On ES 2.4\r\n\"properties\": {\r\n    \"field1\": {\r\n        \"type\": \"string\",\r\n        \"analyzer\": \"brazilian\"\r\n    }\r\n}\r\n```\r\n````\r\n// On ES 5.0\r\n\"properties\": {\r\n    \"field1\": {\r\n        \"type\": \"text\",\r\n        \"analyzer\": \"brazilian\"\r\n    }\r\n}\r\n````\r\n\r\nI have tried to use *ascifolding* as of below, without success:\r\n````\r\n\"analyzer\": {\r\n    \"brazilian\": {\r\n        \"tokenizer\": \"standard\",\r\n        \"filter\": {\r\n            \"standard\",\r\n            \"lowercase\",\r\n            \"asciifolding\"\r\n        }\r\n    }\r\n}\r\n````\r\n\r\nWhen quering the _analyzer *brazilian* on both my servers, production (ES 2.4) and development (ES 5.0), it brings the same result, as below:\r\n\r\n````\r\n// Query on /index/_analyze\r\n{\r\n\t\"analyzer\": \"brazilian\",\r\n\t\"text\": \"prodigo\",\r\n\t\"explain\": true\r\n}\r\n\r\n// Results:\r\n{\r\n  \"detail\": {\r\n    \"custom_analyzer\": false,\r\n    \"analyzer\": {\r\n      \"name\": \"brazilian\",\r\n      \"tokens\": [\r\n        {\r\n          \"token\": \"prodig\",\r\n          \"start_offset\": 0,\r\n          \"end_offset\": 7,\r\n          \"type\": \"<ALPHANUM>\",\r\n          \"position\": 0,\r\n          \"bytes\": \"[70 72 6f 64 69 67]\",\r\n          \"keyword\": false,\r\n          \"positionLength\": 1\r\n        }\r\n      ]\r\n    }\r\n  }\r\n}\r\n````\r\n\r\nNot sure if this is a bug or even enough information, so please let me know if I could improve this issue, or if it is one.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/259650334","html_url":"https://github.com/elastic/elasticsearch/issues/21437#issuecomment-259650334","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/21437","id":259650334,"user":{"login":"dadoonet","id":274222,"avatar_url":"https://avatars.githubusercontent.com/u/274222?v=3","gravatar_id":"","url":"https://api.github.com/users/dadoonet","html_url":"https://github.com/dadoonet","followers_url":"https://api.github.com/users/dadoonet/followers","following_url":"https://api.github.com/users/dadoonet/following{/other_user}","gists_url":"https://api.github.com/users/dadoonet/gists{/gist_id}","starred_url":"https://api.github.com/users/dadoonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dadoonet/subscriptions","organizations_url":"https://api.github.com/users/dadoonet/orgs","repos_url":"https://api.github.com/users/dadoonet/repos","events_url":"https://api.github.com/users/dadoonet/events{/privacy}","received_events_url":"https://api.github.com/users/dadoonet/received_events","type":"User","site_admin":false},"created_at":"2016-11-10T10:06:57Z","updated_at":"2016-11-10T10:06:57Z","body":"I'm used \r\n\r\n```\r\n[PQ1p7Sk] version[5.0.0], pid[30895], build[253032b/2016-10-26T04:37:51.531Z], OS[Mac OS X/10.11.6/x86_64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_60/25.60-b23]\r\n```\r\n\r\nWhich is the same build. Strange you are seeing a different behavior."}}
{"actor":{"display_login":"dadoonet"}}