{"action":"closed","issue":{"url":"https://api.github.com/repos/skroutz/elasticsearch-analysis-turkishstemmer/issues/21","repository_url":"https://api.github.com/repos/skroutz/elasticsearch-analysis-turkishstemmer","labels_url":"https://api.github.com/repos/skroutz/elasticsearch-analysis-turkishstemmer/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/skroutz/elasticsearch-analysis-turkishstemmer/issues/21/comments","events_url":"https://api.github.com/repos/skroutz/elasticsearch-analysis-turkishstemmer/issues/21/events","html_url":"https://github.com/skroutz/elasticsearch-analysis-turkishstemmer/issues/21","id":297729063,"number":21,"title":"elasticsearch-analysis-turkishstemmer can't be used when asserts are enabled in Lucene (using Elasticsearch)","user":{"login":"ptanov","id":7067604,"avatar_url":"https://avatars1.githubusercontent.com/u/7067604?v=4","gravatar_id":"","url":"https://api.github.com/users/ptanov","html_url":"https://github.com/ptanov","followers_url":"https://api.github.com/users/ptanov/followers","following_url":"https://api.github.com/users/ptanov/following{/other_user}","gists_url":"https://api.github.com/users/ptanov/gists{/gist_id}","starred_url":"https://api.github.com/users/ptanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptanov/subscriptions","organizations_url":"https://api.github.com/users/ptanov/orgs","repos_url":"https://api.github.com/users/ptanov/repos","events_url":"https://api.github.com/users/ptanov/events{/privacy}","received_events_url":"https://api.github.com/users/ptanov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-16T09:49:10Z","updated_at":"2018-03-08T14:10:18Z","closed_at":"2018-03-08T14:10:18Z","author_association":"CONTRIBUTOR","body":"Lucene expects that `TurkishStemmerTokenFilter` is final or at least `TurkishStemmerTokenFilter.incrementToken()` is final. The check is in `boolean org.apache.lucene.analysis.TokenStream.assertFinal()`:\r\n```\r\n private boolean assertFinal() {\r\n    try {\r\n      final Class<?> clazz = getClass();\r\n      if (!clazz.desiredAssertionStatus())\r\n        return true;\r\n      assert clazz.isAnonymousClass() ||\r\n        (clazz.getModifiers() & (Modifier.FINAL | Modifier.PRIVATE)) != 0 ||\r\n        Modifier.isFinal(clazz.getMethod(\"incrementToken\").getModifiers()) :\r\n        \"TokenStream implementation classes or at least their incrementToken() implementation must be final\";\r\n      return true;\r\n    } catch (NoSuchMethodException nsme) {\r\n      return false;\r\n    }\r\n  }\r\n```\r\nin production asserts are not evaluated, but when I'm testing/debugging my configuration - it breaks the Elasticsearch.\r\n\r\n\r\n"}}
{"actor":{"display_login":"lovemeblender"}}