{"action":"created","issue":{"url":"https://api.github.com/repos/languagetool-org/languagetool/issues/364","repository_url":"https://api.github.com/repos/languagetool-org/languagetool","labels_url":"https://api.github.com/repos/languagetool-org/languagetool/issues/364/labels{/name}","comments_url":"https://api.github.com/repos/languagetool-org/languagetool/issues/364/comments","events_url":"https://api.github.com/repos/languagetool-org/languagetool/issues/364/events","html_url":"https://github.com/languagetool-org/languagetool/issues/364","id":131959159,"number":364,"title":"error indexing a text document with languagetool-wikipedia index","user":{"login":"milekpl","id":1446470,"avatar_url":"https://avatars.githubusercontent.com/u/1446470?v=3","gravatar_id":"","url":"https://api.github.com/users/milekpl","html_url":"https://github.com/milekpl","followers_url":"https://api.github.com/users/milekpl/followers","following_url":"https://api.github.com/users/milekpl/following{/other_user}","gists_url":"https://api.github.com/users/milekpl/gists{/gist_id}","starred_url":"https://api.github.com/users/milekpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milekpl/subscriptions","organizations_url":"https://api.github.com/users/milekpl/orgs","repos_url":"https://api.github.com/users/milekpl/repos","events_url":"https://api.github.com/users/milekpl/events{/privacy}","received_events_url":"https://api.github.com/users/milekpl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"danielnaber","id":857004,"avatar_url":"https://avatars.githubusercontent.com/u/857004?v=3","gravatar_id":"","url":"https://api.github.com/users/danielnaber","html_url":"https://github.com/danielnaber","followers_url":"https://api.github.com/users/danielnaber/followers","following_url":"https://api.github.com/users/danielnaber/following{/other_user}","gists_url":"https://api.github.com/users/danielnaber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielnaber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielnaber/subscriptions","organizations_url":"https://api.github.com/users/danielnaber/orgs","repos_url":"https://api.github.com/users/danielnaber/repos","events_url":"https://api.github.com/users/danielnaber/events{/privacy}","received_events_url":"https://api.github.com/users/danielnaber/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-02-07T11:12:12Z","updated_at":"2016-02-07T18:55:54Z","closed_at":null,"body":"When indexing this sentence in a plain-text UTF-8 file:\r\n\r\n`Dwa dni później, 1 sierpnia, ministrowie finansów Wspólnoty Europejskiej nie mogąc już dłużej walczyć z rynkiem podjęli decyzję o rozszerzeniu z 2, 25 (w przypadku hiszpańskiej pesety i portugalskiego eskudo z 6).o 15 proc. granic wahań kursów w ramach ESW. `\r\n\r\nI get the following error:\r\n\r\n`Exception in thread \"main\" java.lang.IllegalArgumentException: startOffset must be non-negative, and endOffset must be >= startOffset, and offsets must not go backwards startOffset=0,endOffset=0,lastStartOffset=253 for field 'field'\r\n\tat org.apache.lucene.index.DefaultIndexingChain$PerField.invert(DefaultIndexingChain.java:641)\r\n\tat org.apache.lucene.index.DefaultIndexingChain.processField(DefaultIndexingChain.java:344)\r\n\tat org.apache.lucene.index.DefaultIndexingChain.processDocument(DefaultIndexingChain.java:300)\r\n\tat org.apache.lucene.index.DocumentsWriterPerThread.updateDocument(DocumentsWriterPerThread.java:232)\r\n\tat org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:458)\r\n\tat org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1363)\r\n\tat org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1142)\r\n\tat org.languagetool.dev.index.Indexer.add(Indexer.java:173)\r\n\tat org.languagetool.dev.index.Indexer.indexText(Indexer.java:136)\r\n\tat org.languagetool.dev.index.Indexer.run(Indexer.java:109)\r\n\tat org.languagetool.dev.index.Indexer.main(Indexer.java:73)\r\n\tat org.languagetool.dev.wikipedia.Main.main(Main.java:54)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)\r\n`"},"comment":{"url":"https://api.github.com/repos/languagetool-org/languagetool/issues/comments/181081444","html_url":"https://github.com/languagetool-org/languagetool/issues/364#issuecomment-181081444","issue_url":"https://api.github.com/repos/languagetool-org/languagetool/issues/364","id":181081444,"user":{"login":"danielnaber","id":857004,"avatar_url":"https://avatars.githubusercontent.com/u/857004?v=3","gravatar_id":"","url":"https://api.github.com/users/danielnaber","html_url":"https://github.com/danielnaber","followers_url":"https://api.github.com/users/danielnaber/followers","following_url":"https://api.github.com/users/danielnaber/following{/other_user}","gists_url":"https://api.github.com/users/danielnaber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielnaber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielnaber/subscriptions","organizations_url":"https://api.github.com/users/danielnaber/orgs","repos_url":"https://api.github.com/users/danielnaber/repos","events_url":"https://api.github.com/users/danielnaber/events{/privacy}","received_events_url":"https://api.github.com/users/danielnaber/received_events","type":"User","site_admin":false},"created_at":"2016-02-07T18:55:54Z","updated_at":"2016-02-07T18:55:54Z","body":"Shorter than 265 chars: it works, longer: doesn't work."}}