elasticsearch split document ingest processor

时光毁灭记忆、已成空白 提交于 2020-05-16 13:10:25

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/53145978/elasticsearch-split-document-ingest-processor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!