Returns the text associated with the specified alias.
defget_text(self,alias):...
Parameter
Type
Description
alias
str
The alias to locate in the AliasDictionary object.
Returns: str or None: The text associated with the specified alias, or None if the alias does not exist.
Raises
Description
ValueError
If alias is None.
Example
fromgroupdocs.searchimportIndexindex=Index("./MyIndex")aliases=index.dictionaries.alias_dictionaryaliases.add("e","(Einstein OR Albert)")ifaliases.contains("e"):replacement=aliases.get_text("e")print(replacement)# "(Einstein OR Albert)"
Aliases
These names call get_text too, limited to the overloads listed.