clear method

On this page

clear

Removes all words from the StopWordDictionary.

def clear(self):
    ...
Raises Description
RuntimeError The call changes the dictionary of an index that contains documents, is not in the Ready status or is disposed.

Example

from groupdocs.search import Index, IndexSettings

index = Index("./index", IndexSettings(), True)
stop_words = index.dictionaries.stop_word_dictionary
if stop_words.count > 0:
    stop_words.clear()

See Also

On this page