Get Index Names Operation



Get index names example

# Define the get index names operation
# Pass number of indexes to skip & number of indexes to retrieve
get_index_names_op = GetIndexNamesOperation(0, 10)

# Execute the operation by passing it to maintenance.send
index_names = store.maintenance.send(get_index_names_op)

# index_names will contain the first 10 indexes, alphabetically ordered

Syntax

class GetIndexNamesOperation(MaintenanceOperation):
    def __init__(self, start: int, page_size: int): ...
Parameters Type Description
start int Number of index names to skip
page_size int Number of index names to retrieve
Return Value of
store.maintenance.send(GetIndexNamesOperation)
Description
str[] A list of index names.
Alphabetically ordered.