lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Porter (JIRA)" <j...@apache.org>
Subject [jira] Closed: (LUCENE-1463) Cannot set an indexDictionary, perhaps the IndexWriter API changed?
Date Wed, 19 Nov 2008 20:12:46 GMT

     [ 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


Mime
View raw message