The Unicode code point to locate in the CharacterReplacementDictionary object.
Returns: bool: True if the CharacterReplacementDictionary object contains the specified Unicode code point; otherwise, False.
Example
fromgroupdocs.searchimportIndex,IndexSettings# Initialize an index (assumes the index folder is empty)index=Index("./index",IndexSettings(),True)# Access the character replacement dictionaryreplacements=index.dictionaries.character_replacements# Check if a replacement for the hyphen character existsifreplacements.contains(ord("-")):# Retrieve the replacement for the hyphen characterreplacement=replacements.get_replacement(ord("-"))print("The replacement for hyphen is "+chr(replacement))
Aliases
These names call contains too, limited to the overloads listed.