0

我想在我的 ElasticSearch 实例 ( Aiven )中测试新的通配符字段类型。

我试过这个:

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"
}

获取 /_许可证

{
  "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的服务中是否包含这个功能。有什么办法可以使这项工作?

4

1 回答 1

1

尽管该wildcard字段类型确实是在 v7.9 中添加的,但它(不幸的是)仅作为X-Pack 订阅的一部分提供,我认为在 Aiven 上运行的那个是 OSS,它缺少这个和其他 X-Pack 功能。

于 2021-02-23T16:48:00.647 回答