問題タブ [ndjson]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
0 に答える
35 参照

json - Elastic Search -ndjson アップロード ファイルの問題

この画像は、データが正常に分析されたことを示していますが、インポートするフィールドは空です。

現在、Elastic Search -Kibana を使用しています。ファイルのアップロード オプション (データを注入) を使用して ndjson ファイルをインポートしようとしましたが、データは分析されていますが、インポートするフィールドが空です。

以下は私が使用しているndjsonです:

{"candidate":{"first_name":"Margaret","last_name":"Mcdonald","skills":["skLearn","Java","R","SQL","Spark","C++" ],"状態":"AL","専門":"データベース","経験":"中","転勤":"いいえ"}} {"候補者":{"名":"マイケル"," last_name":"Carter","skills":["TensorFlow","R","Spark","MongoDB","C++","SQL"],"state":"AR","専門":"統計","経験":"先輩","転勤":"はい"}} {"候補者":{"名":"ブレンダ","last_name":"Tyler","skills":["Spark"],"state":"UT","specialty":"Database","experience":"Mid","re​​location":"no"}} {"candidate":{"first_name":"Joseph","last_name":"King","skills":["skLearn","SQL","R","Spark","Java","C++" ,"Python","TensorFlow"],"state":"FL","専門":"機械学習","経験":"シニア","転勤":"多分"}} {"候補者":{ "first_name":"Laura","last_name":"Webb","skills":["TensorFlow","C++","SQL","Java","R","MongoDB"],"state":"WY","専門":"機械学習","経験":"ジュニア","転勤":"たぶん"}} {"候補者" :{"first_name":"Cheryl","last_name":"Ramirez","skills":["C++","Python","R","Java","skLearn","SQL","MongoDB" ,"Spark","TensorFlow"],"状態":"OK","専門":"データの可視化","経験":"中","移転":"いいえ"}} {"候補者":{ "first_name":"Charles","last_name":"Stewart","skills":["MongoDB","C++","Java","SQL","R","Python","skLearn"],"状態":"NM","専門":"機械学習","経験":"中","転勤":"多分"}} {"candidate":{"first_name":"Bradley","last_name":"Peterson","skills":["skLearn","MongoDB","Spark"],"state":"TX","専門分野":"データ可視化","経験":"先輩","転勤":"はい"}} {"候補者":{"名":"ウィリアム","姓":"リン","スキル": ["Python","skLearn","R"],"州":"WI","専門":"機械学習","経験":"ミッド","転勤":"たぶん"}} {"候補者":{"名":"リチャード","姓":"森","スキル":["skLearn","MongoDB" ],"状態":"UT","専門":"データベース","経験":"先輩","転勤":"はい"}}

0 投票する
0 に答える
14 参照

api - ndjson を使用したポスト リクエストでエラー メッセージが返される

Jira Insight インポート API を json でテストしていますが、同じエンドポイントにインポートできるファイル数に制限があるため、ndjson でテストしています。

エラーメッセージ:

{"errorMessages":["HTTP 415 サポートされていないメディア タイプ"],"エラー":{}}

何か不足していますか、それとも API が ndjson を受け入れないということですか?