{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/13935","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13935/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13935/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13935/events","html_url":"https://github.com/elastic/elasticsearch/issues/13935","id":109778020,"number":13935,"title":"Hyphenation decompounder malfunction?","user":{"login":"babadofar","id":379628,"avatar_url":"https://avatars.githubusercontent.com/u/379628?v=3","gravatar_id":"","url":"https://api.github.com/users/babadofar","html_url":"https://github.com/babadofar","followers_url":"https://api.github.com/users/babadofar/followers","following_url":"https://api.github.com/users/babadofar/following{/other_user}","gists_url":"https://api.github.com/users/babadofar/gists{/gist_id}","starred_url":"https://api.github.com/users/babadofar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babadofar/subscriptions","organizations_url":"https://api.github.com/users/babadofar/orgs","repos_url":"https://api.github.com/users/babadofar/repos","events_url":"https://api.github.com/users/babadofar/events{/privacy}","received_events_url":"https://api.github.com/users/babadofar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Analysis","name":":Analysis","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/adoptme","name":"adoptme","color":"207de5"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/bug","name":"bug","color":"9e2c2c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-05T11:33:49Z","updated_at":"2016-01-07T09:42:02Z","closed_at":null,"body":"Hi,\r\nI'm trying to use the hyphenation decompounder as described here to split the Norwegian word \"chaplinpris\" into its two word-parts \"chaplin\" and \"pris\", but having no luck: Following instructions as put down in this page:\r\nhttps://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-compound-word-tokenfilter.html\r\n\r\nI handcrafted my own hyphenation pattern file:\r\n\r\n    <hyphenation-info>\r\n    <hyphen-min before=\"2\" after=\"2\"/>\r\n    <patterns>\r\n    chaplin7pris\r\n    </patterns>\r\n    </hyphenation-info>\r\n\r\nThe 7 between chaplin and pris should mean that this place is highly eligible for a word-split. (some documentation for the patterns found here http://xmlgraphics.apache.org/fop/1.1/hyphenation.html#patterns)\r\n\r\nThe analysis settings:\r\n\r\n    PUT / wiki / _settings \r\n    {\r\n        \"settings\": {\r\n            \"analysis\": {\r\n                \"analyzer\": {\r\n                    \"hyph_decoumpound_list\": {\r\n                        \"tokenizer\": \"standard\",\r\n                        \"filter\": [\r\n                            \"standard\",\r\n                            \"lowercase\",\r\n                            \"hyph_decompound_list\"\r\n                        ]\r\n                    }\r\n                },\r\n                \"filter\": {\r\n                    \"hyph_decompound_list\": {\r\n                        \"type\": \"hyphenation_decompounder\",\r\n                        \"word_list\": [\"pris\", \"chaplin\"],\r\n                        \"hyphenation_patterns_path\": \"config/lang/hyphenation/test.xml\"\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n\r\nTesting analysis\r\n    \r\n    GET /wiki/_analyze?analyzer=hyph_decoumpound_list&text=chaplinpris\r\n\r\nreturns no splits:\r\n````\r\n{\r\n   \"tokens\": [\r\n      {\r\n         \"token\": \"chaplinpris\",\r\n         \"start_offset\": 0,\r\n         \"end_offset\": 11,\r\n         \"type\": \"<ALPHANUM>\",\r\n         \"position\": 1\r\n      }\r\n   ]\r\n}\r\n````\r\n\r\nUsing the same analysis setting just replacing type hyphenation decompounder with the dictionary decompounder works fine. So it seems the hyphenation decompounder doesn't do what it's supposed to? "},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/169611110","html_url":"https://github.com/elastic/elasticsearch/issues/13935#issuecomment-169611110","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13935","id":169611110,"user":{"login":"udit7590","id":9693625,"avatar_url":"https://avatars.githubusercontent.com/u/9693625?v=3","gravatar_id":"","url":"https://api.github.com/users/udit7590","html_url":"https://github.com/udit7590","followers_url":"https://api.github.com/users/udit7590/followers","following_url":"https://api.github.com/users/udit7590/following{/other_user}","gists_url":"https://api.github.com/users/udit7590/gists{/gist_id}","starred_url":"https://api.github.com/users/udit7590/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/udit7590/subscriptions","organizations_url":"https://api.github.com/users/udit7590/orgs","repos_url":"https://api.github.com/users/udit7590/repos","events_url":"https://api.github.com/users/udit7590/events{/privacy}","received_events_url":"https://api.github.com/users/udit7590/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T09:42:02Z","updated_at":"2016-01-07T09:42:02Z","body":"@babadofar There is an option for that: only_longest_match: true\r\nBut hyphenation_decompounder is not working in my case as well. Dont know where going wrong"}}