elasticsearch 如何为摄取附件elasticsearch插件禁用base64存储?,elasticsearch,indexing,full-text-search,full-text-indexing,data-ingestion,elasticsearch,Indexing,Full Text Search,Full Text Indexing,Data Ingestion" /> elasticsearch 如何为摄取附件elasticsearch插件禁用base64存储?,elasticsearch,indexing,full-text-search,full-text-indexing,data-ingestion,elasticsearch,Indexing,Full Text Search,Full Text Indexing,Data Ingestion" />

elasticsearch 如何为摄取附件elasticsearch插件禁用base64存储?

elasticsearch 如何为摄取附件elasticsearch插件禁用base64存储?,elasticsearch,indexing,full-text-search,full-text-indexing,data-ingestion,elasticsearch,Indexing,Full Text Search,Full Text Indexing,Data Ingestion,该示例显示了如何通过插入附件插件将base64文档存储到elasticsearch中。但在此之后,我得到了elasticsearch索引包含解析文本和base64字段源。为什么需要它?有没有办法删除base64文本字段,并在对文档编制索引后仅保留文本而不是其内容?没有此选项,但您可以向摄取管道添加“删除”处理器: PUT _ingest/pipeline/attachment { "description": "Extract attachment information and rem

该示例显示了如何通过插入附件插件将base64文档存储到elasticsearch中。但在此之后,我得到了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"
            }
        }
    ]
}