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
const getIndexNamesOp = new GetIndexNamesOperation(0, 10);

// Execute the operation by passing it to maintenance.send
const indexNames = await store.maintenance.send(getIndexNamesOp);

// indexNames will contain the first 10 indexes, alphabetically ordered


const getIndexNamesOp = new GetIndexNamesOperation(start, pageSize);
Parameters Type Description
start number Number of index names to skip
pageSize number Number of index names to retrieve
Return Value of
string[] A list of index names.
Alphabetically ordered.