0
私はelastic
からBulkIndexRequest
を使いたいです。私は例を見つけようとしますが、存在しないようです。だから、誰かがそれを使用している場合は、以下のようなリクエストを作成するために私を助けてくれますか?golangパッケージ「elastic」からBulkIndexRequestを使用
curl -s -H "Content-Type: application/json" -XPOST localhost:9200/someindex/sometype/_bulk -d'
{ "index": {"_id": "existing_id"}}
{ "field1": "test1"}
{ "index": {"_id": "existing_id2"}}
{ "field2": "test2"}
'