Get Index Names Operation
-
Use
GetIndexNamesOperation
to retrieve multiple index names from the database. -
In this page:
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
Syntax
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 ofstore.maintenance.send(getIndexNamesOp) |
Description |
---|---|
string[] |
A list of index names. Alphabetically ordered. |