Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-1463

Cannot set an indexDictionary, perhaps the IndexWriter API changed?

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 2.4
    • None
    • modules/spellchecker
    • None
    • Mac OSX, but probably all

    • New

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lightguard Jason Porter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: