com.groupdocs.search

Class SpellingCorrector



  • public class SpellingCorrector
    extends DictionaryBase

    Represents a spelling corrector for terms in query.

    • Method Detail

      • getCount

        public final int getCount()

        Gets the number of words contained in the SpellingCorrector.

      • getWords

        public final String[] getWords()

        Gets the word collection that is contained in a corrector.

        Returns:
        The word collection.
      • addRange

        public final void addRange(Iterable<String> words)

        Adds the specified collection of words to this instance of the SpellingCorrector.

        Parameters:
        words - The collection of words to add to the dictionary.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Thrown when words is null.
      • clear

        public final void clear()

        Removes all words from a SpellingCorrector object.

      • export

        @Deprecated
        public final void export(String fileName)
        Deprecated. 

        Exports the internal dictionary to the specified text file.

        Parameters:
        fileName - The file to export to.
      • import_

        @Deprecated
        public final void import_(String fileName)
        Deprecated. 

        Imports a dictionary from the specified text file.

        Parameters:
        fileName - The file to import from.
      • exportDictionary

        public final void exportDictionary(String fileName)

        Exports the internal dictionary to the specified text file.

        Parameters:
        fileName - The file to export to.
      • importDictionary

        public final void importDictionary(String fileName)

        Imports a dictionary from the specified text file.

        Parameters:
        fileName - The file to import from.