【问题标题】:AWS Elasticsearch: closing index for putSettings 'is not allowed'?AWS Elasticsearch:putSettings“不允许”的关闭索引?
【发布时间】:2019-07-29 15:25:40
【问题描述】:

我有一个问题。我的 Elasticsearch 索引应该有电子邮件分析器,用于以正确的方式存储电子邮件。出于这个原因,我在配置中创建了新的分析器并调用方法client.indices.putSettings(Node.js)。但是官方文档说首先我们需要为我们的索引调用_close方法,然后我们应该调用putSettings

当我使用 Docker 映像时,这些方法执行时没有任何问题。但是在 AWS 上我得到了以下异常:

Your request: '/index/_close' is not allowed by Amazon Elasticsearch Service.

如何将我的自定义设置设置为 Amazon Elasticsearch Service?

【问题讨论】:

    标签: node.js amazon-web-services elasticsearch config


    【解决方案1】:

    您的原始标题是“我如何在 ElasticSearch 上设置设置”,但您的问题主体是询问特定错误。

    回答原标题,AWS Elasticsearch Service: How to put settings?

    The node.js documentation for ElasticSearch 覆盖putSettings()

    client.indices.putSettings({
      index: string | string[],
      master_timeout: string,
      timeout: string,
      preserve_existing: boolean,
      ignore_unavailable: boolean,
      allow_no_indices: boolean,
      expand_wildcards: 'open' | 'closed' | 'none' | 'all',
      flat_settings: boolean,
      body: object
    })
    

    bodygeneral HTTP API 中定义

    【讨论】:

      猜你喜欢
      • 2011-02-13
      • 2018-12-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-06-21
      相关资源
      最近更新 更多