Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
Click here >
Docs 菜单
Docs 主页
/ /

管理MongoDB Search 索引

MongoDB 搜索索引是一种数据结构,可将 Atlas 集群中的文档映射到从这些文档中提取的术语。MongoDB Search 搜索索引启用使用MongoDB Search 搜索查询对数据库进行高效的全文搜索。

本页介绍如何使用Atlas用户界面或我们支持的客户端之一创建、查看、更新或删除MongoDB搜索索引。

您可以从Atlas用户界面或以下受支持的客户端之一创建和管理MongoDB搜索索引:

  • Atlas CLI,其 Atlas 集群运行 MongoDB 7.0+

  • mongosh,其中Atlas 集群运行MongoDB 7.0+。

  • Compass,其 Atlas 集群运行 MongoDB 7.0+。

  • 支持的 MongoDB 驱动程序:

    MongoDB 驱动
    驱动程序版本

    1.25.0 或更高版本

    3.9.0 或更高版本

    2.21.0 或更高版本

    1.13.0 或更高

    4.11.0 或更高版本

    9.0 或更高

    3.3.0 或更高

    5.2.0 或更高

    5.6.0 或更高版本

    1.17.0 或更高版本

    4.5 或更高版本

    2.19.2 或更高版本

    2.8.0 或更高版本

    5.2.0 或更高

You can assign Project User Roles or Database Built-in User Roles to provide access to the user privileges necessary to perform the MongoDB Search index actions described in this guide:

  • To learn how to define a MongoDB Search index to meet your MongoDB Search query needs, see Define Your Query.

  • 要学习如何创建MongoDB搜索索引,请参阅创建MongoDB搜索索引。

  • 要学习;了解有关本教程中描述的MongoDB Search索引配置的更多信息,请参阅以下参考页面:

  • For hands-on experience creating MongoDB Search indexes for the sample datasets and running MongoDB Search queries against the indexed data, try the MongoDB Search Quick Start.

  • 要了解如何定义索引以满足您的查询偏好,请参阅定义您的索引。

  • To retrieve MongoDB Search index size and other search metrics programmatically using the Atlas Administration API, see Retrieve MongoDB Search Metrics Programmatically.

您还可以观看以下视频,学习;了解有关MongoDB Search 索引的更多信息:

后退

查询和索引

在此页面上