11.4采集索引管理功能

Collection.createIndex()函数

EBNF中显示的这个函数的语法是:

CollectionCreateIndex:: = '。createIndex(' StringLiteral ',' DocumentOrJSON ')'

图11.13 CollectionCreateIndexFunction

图像显示了前面文本中描述的EBNF格式的语法。

CollectionDropIndex

EBNF中显示的这个函数的语法是:

CollectionDropIndex:: = '。dropIndex (StringLiteral) '

图11.14 CollectionDropIndex

图像显示了前面文本中描述的EBNF格式的语法。