elasticsearch拆分文档提取处理器 [英] elasticsearch split document ingest processor
问题描述
elasticsearch 提供了 ingest 机制在对文档建立索引时对其进行转换。处理器可以转换字段,在索引文档中添加和删除字段。在极少数情况下,甚至可以编写自己的转换插件。但是,我找不到为单个输入文档生成多个输出文档的任何可能性。在Elastic中使用 ingest
模块可以通过某种方式实现吗?我想将一个文档拆分为多个文档。
elasticsearch provides the ingest mechanism to transform documents while they are indexed. The processory can transform fields, add and remove fields from indexed documents. For the rare cases it is possible to even write your own transform plugin. I cannot however find any possibilty to produce mutiple output documents for a single input document. Is this somehow possible using the ingest
module in elastic? I would like to split a single document into multiple documents. Does it always have to be a one-to-one relation between the input and transformed document?
推荐答案
提取节点只能转换已索引但不适合您要实现的文档。您需要查看Logstash拆分过滤器插件,并查看它是否适合您的用例- https://www.elastic.co/guide/en/logstash/current/plugins-filters-split.html
Ingest node can only transform documents that are indexed but not suitable for what you are trying to achieve. You need to instead look at Logstash split filter plugin and see if it works for your use case - https://www.elastic.co/guide/en/logstash/current/plugins-filters-split.html
这篇关于elasticsearch拆分文档提取处理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!