get_dictionary method

get_dictionary

Gets a dictionary from the specified shard.

def get_dictionary(self, dictionary_type, shard_index):
    ...
Parameter Type Description
dictionary_type DictionaryType The dictionary type.
shard_index int The shard index.

Returns: The dictionary.

Example

from groupdocs.search.dictionaries import DictionaryType

# `node` is the master node of a configured and started search network
indexer = node.indexer

# Get the stop word dictionary of the first shard
shard_index = node.get_shard_indices()[0]
dictionary = indexer.get_dictionary(DictionaryType.STOP_WORD_DICTIONARY, shard_index)

Aliases

These names call get_dictionary too, limited to the overloads listed.

Alias Accepts
get_dictionary_dictionary_type get_dictionary_dictionary_type(dictionary_type, shard_index)

See Also