![](/img/trans.png)
[英]How to index a pdf file in Elasticsearch 5.0.0 with ingest-attachment plugin?
[英]How disable base64 storing for ingest-attachment elasticsearch plugin?
该文档显示了有关如何通过 ingest-attachment 插件将 base64 文档存储到 elasticsearch 中的示例。 但是在此之后我得到了弹性搜索索引包含解析的文本和 base64 字段源。 为什么需要它? 有没有办法删除base64文本字段并在文档被索引后只保留文本而不是内容?
没有选项,但您可以在摄取管道中添加“删除”处理器:
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.