[英]How disable base64 storing for ingest-attachment elasticsearch plugin?
The documentation shows example about how store base64 documents into elasticsearch via ingest-attachment plugin.该文档显示了有关如何通过 ingest-attachment 插件将 base64 文档存储到 elasticsearch 中的示例。 But after this I got that elasticsearch index contains parsed text and base64 field source.
但是在此之后我得到了弹性搜索索引包含解析的文本和 base64 字段源。 Why does it needed?
为什么需要它? Is there a way to remove base64 text field and keep only text after document was indexed not it content?
有没有办法删除base64文本字段并在文档被索引后只保留文本而不是内容?
There's not option for that, but you can add a "remove" processor to your ingestion pipeline:没有选项,但您可以在摄取管道中添加“删除”处理器:
PUT _ingest/pipeline/attachment
{
"description": "Extract attachment information and remove the source encoded data",
"processors": [
{
"attachment": {
"field": "data",
"properties": [
"content",
"content_type",
"content_length"
]
}
},
{
"remove": {
"field": "data"
}
}
]
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.