Cannot set an indexDictionary, perhaps the IndexWriter API changed? -------------------------------------------------------------------
Key: LUCENE-1463 URL: https://issues.apache.org/jira/browse/LUCENE-1463 Project: Lucene - Java Issue Type: Bug Components: contrib/spellchecker Affects Versions: 2.4 Environment: Mac OSX, but probably all Reporter: Jason Porter Received this error when I tried to do use this code: sc.indexDictionary(ptd); java.lang.NoSuchMethodError: org.apache.lucene.index.IndexWriter.setRAMBufferSizeMB(D)V at org.apache.lucene.search.spell.SpellChecker.indexDictionary(SpellChecker.java:328) at org.apache.lucene.search.spell.SpellChecker.indexDictionary(SpellChecker.java:362) at com.octanner.poc.spellcheck.action.LuceneSpellCheckEngine.initChecker(LuceneSpellCheckEngine.java:67) at com.octanner.poc.spellcheck.action.LuceneSpellCheckEngine.check(LuceneSpellCheckEngine.java:30) at com.octanner.poc.spellcheck.test.LuceneSpellCheckTest.workingSpellCheck(LuceneSpellCheckTest.java:25) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604) at org.testng.internal.Invoker.invokeMethod(Invoker.java:470) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) at org.testng.TestRunner.runWorkers(TestRunner.java:678) at org.testng.TestRunner.privateRun(TestRunner.java:624) at org.testng.TestRunner.run(TestRunner.java:495) at org.testng.SuiteRunner.runTest(SuiteRunner.java:300) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275) at org.testng.SuiteRunner.run(SuiteRunner.java:190) at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792) at org.testng.TestNG.runSuitesLocally(TestNG.java:765) at org.testng.TestNG.run(TestNG.java:699) at org.testng.TestNG.privateMain(TestNG.java:824) at org.testng.TestNG.main(TestNG.java:802) I'm not sure when things changed but the IndexWriter takes a double now and not an int. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]