clear method

On this page

clear

Removes all character replacements from the dictionary.

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

Example

# Delete all character replacements from the index's dictionary
index.dictionaries.character_replacements.clear()

See Also

On this page