createIndex() public method
Creates an index on the collection and the specified fields.
| public void createIndex ( $collection, $columns, $options = [] ) | ||
|---|---|---|
| $collection | string|array |
Name of the collection |
| $columns | array|string |
Column name or list of column names. |
| $options | array |
List of options in format: optionName => optionValue. |
Please login to continue.