Docs Home → MongoDB Manual
Indexing Reference索引引用
Indexing Methods in mongosh
mongosh
中的索引方法
Indexing Database Commands索引数据库命令
Name名称 | Description描述 |
createIndexes | Builds one or more indexes for a collection.为集合生成一个或多个索引。 |
dropIndexes | Removes indexes from a collection.从集合中删除索引。 |
compact | Defragments a collection and rebuilds the indexes.对集合进行分片整理并重新构建索引。 |
reIndex | Rebuilds all indexes on a collection.重新生成集合上的所有索引。 |
validate | Internal command that scans for a collection's data and indexes for correctness.用于扫描集合的数据和索引以确保正确性的内部命令。 |
geoSearch | Removed in MongoDB 5.0.在MongoDB 5.0中删除。 Performs a geospatial query that uses MongoDB's haystack index functionality.使用MongoDB的haystack索引功能执行地理空间查询。 |
checkShardingIndex | Internal command that validates index on shard key.用于验证分片键上的索引的内部命令。 |
setIndexCommitQuorum | Changes the minimum number of data-bearing members (i.e commit quorum), including the primary, that must vote to commit an in-progress index build before the primary marks those indexes as ready.更改数据承载成员(即提交法定人数)的最小数量,包括主要成员,在主要成员将这些索引标记为就绪之前,这些成员必须投票提交正在进行的索引生成。 |
Geospatial Query Selectors地理空间查询选择器