You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jason Porter (JIRA)" <ji...@apache.org> on 2008/11/19 21:12:46 UTC

[jira] Closed: (LUCENE-1463) Cannot set an indexDictionary, perhaps the IndexWriter API changed?

     [ https://issues.apache.org/jira/browse/LUCENE-1463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Porter closed LUCENE-1463.
--------------------------------

    Resolution: Invalid

Looks like I already had an old version of Lucene on the classpath in an uber jar.  My bad, I'm sorry.

> 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org