Uploaded image for project: 'Lucene.Net'
  1. Lucene.Net
  2. LUCENENET-538

SpellChecker.Net.Search.Spell - IndexDictionary(IDictionary dict, int mergeFactor, int ramMB) does not set SetRAMBufferSizeMB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • Lucene.Net 3.0.3
    • None
    • Lucene.Net Contrib

    Description

      The method description for the "void IndexDictionary(IDictionary dict, int mergeFactor, int ramMB)" implies that the RAM Buffer Size would be adjusted using the ramMB value provided, but instead the data is being used to set the SetMaxBufferedDocs.

      (See SpellChecker.cs line 405)

      I propose that this should be changed from
      writer.SetMaxBufferedDocs(ramMB);
      to
      writer.SetRAMBufferSizeMB(ramMB);

      Attachments

        Activity

          People

            Unassigned Unassigned
            becnelli Becky I
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: