![](/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.