0
弾性検索にjosnを送信してデータをアップロードしていますが、うまくいきますが、 JSONには、&は、私は、応答のJSONをダンプした場合、それはエラーにjsonをエラスティックサーチに送信中にエラーが発生しました。
"{"error": {"caused_by": {"reason": "Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes", "type": "not_x_content_exception"}, "reason": "failed to parse", "root_cause": [{"reason": "failed to parse", "type": "mapper_parsing_exception"}], "type": "mapper_parsing_exception"}, "status": 400}"
を与える私のjosn文字列は、私はあなたが使用しているパッケージを知らない、
"{
"first_name":"muhammad irfan",
"middle_name": "",
"last_name":"ulhaq choudhary",
"address":"H,no,197,St,no. 157. G-9\\4",
"city":"Islamabad",
"phone_number1":"",
"phone_number2":"",
"phone_number3":"",
"gender":"M",
"updation_time":"0000-01-01",
"country_id":"1"
}
"
これをチェックしてください:https://github.com/elastic/elasticsearch/pull/21440 – MYGz
あなたのjsonは有効ですが、Elasticsearchのバグのようです。あなたが使用している弾性検索バージョンは何ですか? –