简体   繁体   English

AWS Elasticsearch:如何更新现有索引的分析器设置

[英]AWS Elasticsearch: How to update analyzer settings for existing index

I'm trying to update settings for existing index with custom analyzer, but it is not allowing for open index, and aws is not allowing me to close the index. 我正在尝试使用自定义分析器更新现有索引的设置,但不允许打开索引,aws不允许我关闭索引。

Any thoughts? 有什么想法吗?

AWS Elasticsearch only supports a subset of operations and indeed _close is not supported. AWS Elasticsearch仅支持一部分操作,实际上不支持_close You can get the list of supported operation here . 您可以在此处获取支持的操作列表。

Since you are updating an analyzer you will probably have to reindex your documents, so you can create a new index with the correct mapping and use _reindex endpoint to copy the documents. 由于要更新分析器,您可能必须重新索引文档,因此您可以使用正确的映射创建新索引,并使用_reindex端点复制文档。

If you are not already doing it, I would advise you to use index alias to handle the index migration. 如果您还没有这样做,我建议您使用索引别名来处理索引迁移。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM