Represents a dictionary of characters that is used during indexing to detect character type.
The dictionary defines how the text of documents is divided into terms. Therefore the dictionary of an index can be changed only while the index contains no documents and its status is IndexStatus.ready; otherwise a method that changes the dictionary throws a RuntimeError. A call that does not change the content of the dictionary is always allowed. To use another content with documents that are already indexed, create a new index and index the documents again.
A change of the dictionary of an index is saved in the index at once. If it cannot be saved, the method throws the exception that describes the failure, and the dictionary stays unchanged.
# Export the alphabet to a filealphabet.export_dictionary("./Alphabet.dat")# Import the alphabet into another index and inspect itnew_index.dictionaries.alphabet.import_dictionary("./Alphabet.dat")print("Characters that are not separators:",new_index.dictionaries.alphabet.count)