elasticsearch &引用;映射器“解析”异常;邮差错误,elasticsearch,postman,elasticsearch,Postman" /> elasticsearch &引用;映射器“解析”异常;邮差错误,elasticsearch,postman,elasticsearch,Postman" />

elasticsearch &引用;映射器“解析”异常;邮差错误

elasticsearch &引用;映射器“解析”异常;邮差错误,elasticsearch,postman,elasticsearch,Postman,我正在使用postman与elastic search server通信,当我尝试连接我的elastic search server时,我在postman中收到一个错误。我哪里会出错? 这是我的密码 { "mappings": { "post": { "properties": { "city": { "type": "text" }, "contact_email": { "type

我正在使用postman与elastic search server通信,当我尝试连接我的elastic search server时,我在postman中收到一个错误。我哪里会出错? 这是我的密码

{
  "mappings": {
    "post": {
      "properties": {
        "city": {
          "type": "text"
        },
        "contact_email": {
          "type": "text"
        },
        "country": {
          "type": "text"
        },
        "description": {
          "type": "text"
        },
        "image": {
          "type": "text"
        },
        "post_id": {
          "type": "text"
        },
        "state_province": {
          "type": "text"
        },
        "title": {
          "type": "text"
        }
      }
    }
  }
}
我已尝试与服务器通信,但一直收到此错误

        "root_cause": [
            {
                "type": "mapper_parsing_exception",
                "reason": "Root mapping definition has unsupported parameters:  [post : {properties={country={type=text}, image={type=text}, post_id={type=text}, city={type=text}, description={type=text}, state_province={type=text}, title={type=text}, contact_email={type=text}}}]"
            }

似乎您正在使用elasticsearch 7.0版。由于elasticsearch不再支持每个索引的多个映射类型,因此不再需要映射名称,并且不应在此版本中提供。 从json输入中删除映射名称
post
。使用方法如下:

{
  "mappings": {
    "properties": {
      "city": {
        "type": "text"
      },
      "contact_email": {
        "type": "text"
      },
      "country": {
        "type": "text"
      },
      "description": {
        "type": "text"
      },
      "image": {
        "type": "text"
      },
      "post_id": {
        "type": "text"
      },
      "state_province": {
        "type": "text"
      },
      "title": {
        "type": "text"
      }
    }
  }
}

你能发布更多关于你在做什么的细节吗?你在发送什么请求?这是一个特定的端点吗?你把邮递员的
code
放在哪里了。该错误来自端点,而不是邮递员,它只是显示在应用程序中。我正在向部署了弹性搜索的firebase服务器发送请求,属性如city、contact email。。。。。在同一个about映射类型上,我收到此错误StatusCodeError:400-{“error”:{“root_cause”:[{“type”:“非法参数_exception”,“reason”:“拒绝对[posts]的映射更新,因为最终映射将有多个类型:[[u doc,-LcVpBay0SLV3c6fnpgt]”],您何时收到此错误?是否尝试更新映射?不,我没有尝试更新映射。我已使用nodejs创建并索引函数,并将其部署到firebase中。错误发生在firebase日志中。我在尝试测试函数是否正常工作时收到错误,似乎错误将我带回映射。是否正确我可能需要更新映射,如果需要,我该如何更新映射?你能单独提出一个问题,详细说明你要实现的目标和相关的代码片段吗?这将有助于更好地理解。