[英]How to specify the ingest pipeline
In all the elasticsearch examples I've seen so far, every index request that needs to use an ingest pipeline passes it as query parameter like到目前为止,在我见过的所有弹性搜索示例中,每个需要使用摄取管道的索引请求都将其作为查询参数传递,例如
PUT /<target>/_doc/<_id>?pipeline=my_pipeline
Is this the only way to use the pipeline when indexing documents?这是索引文档时使用管道的唯一方法吗? Or are there also other ways to utilize the pipelines?
或者还有其他方法可以利用管道吗?
That's only one of the options, there are plenty of ways to leverage ingest pipelines.这只是其中一种选择,有很多方法可以利用摄取管道。 You can also:
你也可以:
You can also define a default pipeline to be used when indexing documents inside an index with the index.default_pipeline
setting and the index.final_pipeline
setting , so as not to have to specify it in each indexing request (as in your question).您还可以使用
index.default_pipeline
设置和index.final_pipeline
设置定义在索引内索引文档时使用的默认管道,以便不必在每个索引请求中指定它(如您的问题中所示)。
You can also specify it in the elasticsearch
Logstash output plugin or in the Filebeat elasticsearch
output]( https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html#pipeline-option-es ).您也可以在elasticsearch
elasticsearch
输出插件或elasticsearch
elasticsearch 输出中指定它]( https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html#pipeline-option-es )。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.