Docs HomeMongoDB Manual

Atlas Search Index MethodsAtlas搜索索引方法

Note

For details on a specific method, including syntax and examples, click on the link to the method's reference page.有关特定方法的详细信息,包括语法和示例,请单击该方法参考页的链接。

Atlas Search indexes let you query data in Atlas Search. Atlas Search索引允许您在Atlas Search中查询数据。Atlas Search indexes enable performant text search queries by mapping search terms to the documents that contain those terms.Atlas Search索引通过将搜索术语映射到包含这些术语的文档来实现高性能文本搜索查询。

Use the following methods to manage Atlas Search indexes.使用以下方法管理Atlas Search索引。

Important

The following methods can only be run on deployments hosted on MongoDB Atlas, and require an Atlas cluster tier of at least M10.以下方法只能在MongoDB Atlas上托管的部署上运行,并且需要至少M10的Atlas集群层。

Name名称Description描述
db.collection.createSearchIndex()Creates an Atlas Search index on a specified collection. 在指定集合上创建Atlas Search索引。
db.collection.dropSearchIndex()Deletes an existing Atlas Search index. 删除现有的Atlas Search索引。
db.collection.getSearchIndexes()Returns information about existing Atlas Search indexes on a specified collection. 返回有关指定集合上现有Atlas Search索引的信息。
db.collection.updateSearchIndex()Updates an existing Atlas Search index. 更新现有的Atlas Search索引。