BaseXdb/basex — Issue #311: Russian stemmer does not work
Author: dimitarp
Created: 2011-12-09 12:22:43+00:00
State: open

set debug true; set ftindex true; set stemming true; set language Russian; create db test test

Output:

Full-Text Index: ON
STEMMING: ON
LANGUAGE: Russian
Creating Database...
. 78.34 ms (3461 KB)
Indexing Text...
. 63.59 ms (1944 KB)
Indexing Attributes...
. 58.72 ms (2007 KB)
java.lang.IllegalAccessException: Class org.basex.util.Reflect can not access a member of class org.apache.lucene.analysis.ru.RussianStemmer with modifiers "public"
sun.reflect.Reflection.ensureMemberAccess(Reflection.java:95)
java.lang.Class.newInstance0(Class.java:366)
java.lang.Class.newInstance(Class.java:325)
org.basex.util.Reflect.get(Reflect.java:178)
org.basex.util.ft.LuceneStemmer.(LuceneStemmer.java:99)
org.basex.util.ft.LuceneStemmer.get(LuceneStemmer.java:109)
org.basex.util.ft.FTLexer.(FTLexer.java:75)
org.basex.index.ft.FTBuilder.(FTBuilder.java:94)
org.basex.index.ft.FTFuzzyBuilder.(FTFuzzyBuilder.java:36)
org.basex.index.ft.FTBuilder.get(FTBuilder.java:68)
org.basex.core.cmd.ACreate.index(ACreate.java:149)
org.basex.core.cmd.ACreate.index(ACreate.java:131)
org.basex.core.cmd.ACreate.build(ACreate.java:102)
org.basex.core.cmd.CreateDB.run(CreateDB.java:88)
org.basex.core.Command.run(Command.java:328)
org.basex.core.Command.exec(Command.java:309)
org.basex.core.Command.execute(Command.java:77)
org.basex.server.LocalSession.execute(LocalSession.java:142)
org.basex.server.Session.execute(Session.java:38)
org.basex.core.Main.execute(Main.java:139)
org.basex.core.Main.execute(Main.java:120)
org.basex.core.Main.console(Main.java:79)
org.basex.BaseX.(BaseX.java:96)
org.basex.BaseX.main(BaseX.java:54)
Indexing Full-Text...
.java.lang.NullPointerException
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:601)
org.basex.util.Reflect.invoke(Reflect.java:211)
org.basex.util.ft.LuceneStemmer.stem(LuceneStemmer.java:131)
org.basex.util.ft.Stemmer.nextToken(Stemmer.java:96)
org.basex.util.ft.FTLexer.nextToken(FTLexer.java:119)
org.basex.index.ft.FTBuilder.index(FTBuilder.java:122)
org.basex.index.ft.FTFuzzyBuilder.build(FTFuzzyBuilder.java:41)
org.basex.index.ft.FTFuzzyBuilder.build(FTFuzzyBuilder.java:1)
org.basex.core.cmd.ACreate.index(ACreate.java:154)
org.basex.core.cmd.ACreate.index(ACreate.java:131)
org.basex.core.cmd.ACreate.build(ACreate.java:102)
org.basex.core.cmd.CreateDB.run(CreateDB.java:88)
org.basex.core.Command.run(Command.java:328)
org.basex.core.Command.exec(Command.java:309)
org.basex.core.Command.execute(Command.java:77)
org.basex.server.LocalSession.execute(LocalSession.java:142)
org.basex.server.Session.execute(Session.java:38)
org.basex.core.Main.execute(Main.java:139)
org.basex.core.Main.execute(Main.java:120)
org.basex.core.Main.console(Main.java:79)
org.basex.BaseX.(BaseX.java:96)
org.basex.BaseX.main(BaseX.java:54)
java.lang.NullPointerException
org.basex.core.BaseXException: "test" could not be parsed.
org.basex.core.Command.execute(Command.java:77)
org.basex.server.LocalSession.execute(LocalSession.java:142)
org.basex.server.Session.execute(Session.java:38)
org.basex.core.Main.execute(Main.java:139)
org.basex.core.Main.execute(Main.java:120)
org.basex.core.Main.console(Main.java:79)
org.basex.BaseX.(BaseX.java:96)
org.basex.BaseX.main(BaseX.java:54)
"test" could not be parsed.