com.groupdocs.search.legacy

Interfaces

Classes

Exceptions

com.groupdocs.search.legacy

Class SpellingCorrector


  • Deprecated. 
    This class is deprecated and will be available until January 2020 (version 20.1).

    @Deprecated
    public class SpellingCorrector
    extends DictionaryBase

    Represents a spelling corrector for terms in query.

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void addRange(Iterable<String> words)
      Deprecated. 
      Adds the specified collection of words to this instance of the SpellingCorrector.
      void addRange(String[] words)
      Deprecated. 
      Adds the specified collection of words to this instance of the SpellingCorrector.
      void clear()
      Deprecated. 
      Removes all words from a SpellingCorrector object.
      void exportDictionary(String fileName)
      Deprecated. 
      Exports the internal dictionary to the specified text file.
      int getCount()
      Deprecated. 
      Gets the number of words contained in the SpellingCorrector.
      String[] getWords()
      Deprecated. 
      Gets the word collection that is contained in a corrector.
      void importDictionary(String fileName)
      Deprecated. 
      Imports a dictionary from the specified text file.
    • Method Detail

      • getCount

        public final int getCount()
        Deprecated. 

        Gets the number of words contained in the SpellingCorrector.

      • getWords

        public final String[] getWords()
        Deprecated. 

        Gets the word collection that is contained in a corrector.

        Returns:
        The word collection.
      • addRange

        public final void addRange(Iterable<String> words)
        Deprecated. 

        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.
      • addRange

        public final void addRange(String[] words)
        Deprecated. 

        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()
        Deprecated. 

        Removes all words from a SpellingCorrector object.

      • exportDictionary

        public final void exportDictionary(String fileName)
        Deprecated. 

        Exports the internal dictionary to the specified text file.

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

        public final void importDictionary(String fileName)
        Deprecated. 

        Imports a dictionary from the specified text file.

        Parameters:
        fileName - The file to import from.