【问题标题】:How to use wildcard field in Aiven's ElasticSearch?如何在 Aiven 的 ElasticSearch 中使用通配符字段?
【发布时间】:2021-05-25 19:35:22
【问题描述】:

我想在我的 ElasticSearch 实例 (Aiven) 中测试新的 wildcard field type

我试过了:

PUT /wildcard_test
{
  "mappings" : {
      "properties" : {
        "wildcard_field" : {
          "type" : "wildcard"
          }
        }
  }
}

我收到了这样的回复:

{
  "error" : {
    "root_cause" : [
      {
        "type" : "mapper_parsing_exception",
        "reason" : "No handler for type [wildcard] declared on field [wildcard_field]"
      }
    ],
    "type" : "mapper_parsing_exception",
    "reason" : "Failed to parse mapping [_doc]: No handler for type [wildcard] declared on field [wildcard_field]",
    "caused_by" : {
      "type" : "mapper_parsing_exception",
      "reason" : "No handler for type [wildcard] declared on field [wildcard_field]"
    }
  },
  "status" : 400
}

以下是有关实例的信息:

获取/

{
  "name" : "...",
  "cluster_name" : "...",
  "cluster_uuid" : "...",
  "version" : {
    "number" : "7.9.3",
    "build_flavor" : "unknown",
    "build_type" : "unknown",
    "build_hash" : "c4138e51121ef06a6404866cddc601906fe5c868",
    "build_date" : "2020-10-16T10:36:16.141335Z",
    "build_snapshot" : false,
    "lucene_version" : "8.6.2",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

GET /_许可证

{
  "error" : {
    "root_cause" : [
      {
        "type" : "invalid_index_name_exception",
        "reason" : "Invalid index name [_license], must not start with '_'.",
        "index_uuid" : "_na_",
        "index" : "_license"
      }
    ],
    "type" : "invalid_index_name_exception",
    "reason" : "Invalid index name [_license], must not start with '_'.",
    "index_uuid" : "_na_",
    "index" : "_license"
  },
  "status" : 400
}

我的理解是这个功能是由X-Pack提供的,我不知道是否包含在Aiven的服务中。有什么方法可以让这个工作吗?

【问题讨论】:

  • 我想_license endpoint 在 Aiven 中被阻止了,但这不应该阻止您创建索引并搜索它。到目前为止,您在这方面做了什么尝试?问题内容与其标题不符。
  • @JoeSorocin 请检查我的更新

标签: elasticsearch aiven


【解决方案1】:

虽然wildcard 字段类型确实是added in v7.9,但它(不幸的是)仅作为X-Pack subscription 的一部分提供,我认为在Aiven 上运行的那个是缺少这个和其他X-Pack 功能的OSS。

【讨论】:

  • 我以前访问过这个页面(它会重定向到本地化版本),但我不认识我自己的语言中关于通配符的部分。感谢您的回答,我想我将不得不使用其他替代方案。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-08-08
  • 1970-01-01
  • 1970-01-01
  • 2021-07-20
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多