get_synonym_dictionary method
Leave feedback
On this page
Retrieves the synonym dictionary.
Obtains the synonym dictionary for the specified shard.
def get_synonym_dictionary(self, shard_index):
...
| Parameter | Type | Description |
|---|---|---|
| shard_index | int |
The shard index. |
Returns: The dictionary.
indices = node.get_shard_indices()
dictionary = indexer.get_synonym_dictionary(indices[0])
if clear_before_adding:
dictionary.clear()
These names call get_synonym_dictionary too, limited to the overloads listed.
| Alias | Accepts |
|---|---|
get_synonym_dictionary_int32 |
get_synonym_dictionary_int32(shard_index) |
- class
Indexer
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.