2017-07-26 12 views
0

パイプラインでアタッチメントプロセッサAttachment Processorを使用しています。ingestプラグインを使用したElasticSearch Bulk

すべてうまく動作しますが、私は複数の投稿をしたかったので、bulk APIを使ってみました。 バルクも正常に動作しますが、urlパラメータ "pipeline = attachment"の送信方法が見つかりません。

POST testindex/type1/1?pipeline=attachment 
{ 
    "data": "Y291Y291", 
    "name" : "Marc", 
    "age" : 23 
} 

このバルク作品:

POST _bulk 
{ "index" : { "_index" : "testindex", "_type" : "type1", "_id" : "2" } } 
{ "name" : "jean", "age" : 22 } 

しかし、どのように、私は大量の彼のデータフィールドを持つインデックスマークは、パイプラインプラグインによって理解することができる

これは作品を置きますか?

+2

:https://stackoverflow.com/a/41910185/4604579 – Val

答えて

0

感謝ヴァルのコメントに、私はそれをやったし、それが正常に動作:この答えは助けるべき

POST _bulk 
{ "index" : { "_index" : "testindex", "_type" : "type1", "_id" : "2", "pipeline": "attachment"} } } 
{"data": "Y291Y291", "name" : "jean", "age" : 22} 
関連する問題