您可以使用搜索节点配置文件来指定使用Atlas CLI创建搜索节点或更新搜索节点时所需的设置。 Atlas CLI接受.json搜索节点配置文件。
可用设置
When you create search nodes using a configuration file, you can specify any settings that are listed in Create Search Nodes under Request Body Schema.
When you update search nodes using a configuration file, you can specify any settings that are listed in Update Search Nodes under Request Body Schema.
创建配置文件
创建Atlas Search节点
请按照以下步骤使用配置文件创建Atlas Search节点:
1
复制 Create Search Nodes 的示例请求。
Atlas Search导航到Atlas AdminAPI 规范的 创建 节点 部分。
在右侧的Request samples下,单击Expand all 。
单击Copy ,复制样本请求。
3
使用 --file 选项运行Atlas clusters 搜索 nodes create命令。
使用--file标志指定保存的文件的路径。
更新Atlas Search节点
请按照以下步骤使用配置文件更新Atlas Search节点:
3
使用--file选项运行Atlas clusters 搜索 Nodes 更新命令。
使用--file标志指定保存的文件的路径。