clear method

On this page

clear

Clears the dictionary.

def clear(self):
    ...
Raises Description
RuntimeError The call changes a dictionary that defines how the text of documents is divided into terms (see DictionaryRepository), and the index of the dictionary contains documents, is not in the IndexStatus.ready status or is disposed.

Example

# Clear the alphabet dictionary in an index
index.dictionaries.alphabet.clear()

See Also

On this page