无法关闭AWS上的ElasticSearch索引? [英] Can't close ElasticSearch index on AWS?

查看:153
本文介绍了无法关闭AWS上的ElasticSearch索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个新的AWS ElasticSearch域,用于测试。我现在在不同的主机上使用ES,而我正在寻求迁移到AWS。



我需要做的一件事是将我的映射(分析器)设置在我的实例。为了做到这一点,我需要关闭索引,否则ES会引发一个异常。



每当我尝试关闭索引,从AWS获取例外:

 您的请求:CloudSearch不允许/ _all / _close 

AWS ES文档在某些情况下专门说:

 $ $ $ $ $ $ $ $ $ $ $ $ $ p> 

我没有找到任何文档说明为什么我无法在AWS ES上关闭我的索引,也没有找到任何其他有这个问题的人。 / p>

我有一个奇怪的是我有一个ElasticSearch域,但它给我一个CloudSearch错误消息,因为我认为这些是不同的服务,虽然我想一个是



谢谢!

解决方案

AWS Elasticsearch不支持关闭索引操作。



http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html



目前,Amazon ES不支持Elasticsearch _close API


I've created a new AWS ElasticSearch domain, for testing. I use ES on a different host right now, and I'm looking to move to AWS.

One thing I need to do is set the mapping (analyzers) on my instance. In order to do this, I need to "close" the index, or else ES will just raise an exception.

Whenever I try to close the index, though, I get an exception from AWS:

Your request: '/_all/_close' is not allowed by CloudSearch.

The AWS ES documentation specifically says to do this in some cases:

 curl -XPOST 'http://search-weblogs-abcdefghijklmnojiu.us-east-1.a9.com/_all/_close'

I haven't found any documentation that says why I wouldn't be able to close my indices on AWS ES, nor have I found anyone else who has this problem.

It's also a bit strange that I've got an ElasticSearch domain, but it's giving me a CloudSearch error message, since I thought those were different services, though I suppose one is implemented in terms of the other.

thanks!

解决方案

AWS Elasticsearch does not support the "close" operation on indexes.

http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html

"Currently, Amazon ES does not support the Elasticsearch _close API"

这篇关于无法关闭AWS上的ElasticSearch索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆