我有Elasticsearch的附件插件来索引存储在Document中的所有文件。我想排除文件内容存储在_source中。
我的配置文件看起来像:
document:
mappings:
id: { index: not_analyzed }
path: {}
name: { boost: 5}
file:
type: attachment
store: "yes"
fields:
title: { store : "yes" }
file : {term_vector: "with_positions_offsets", store: yes}
analyzer: standard
boost: 2
persistence:
driver: orm
model: ACF\CaseBundle\Entity\Document
listener:
finder:
provider:
batch_size: 100
_source:
excludes:
file: ~
当我运行foq:elastica:populate我仍然看到“file”属性存储在_source中。我无法弄清楚遗漏了什么。请帮忙
答案 0 :(得分:0)
如果有其他人遇到此问题,如果您按如下方式排除属性,则应该可以正常工作:
_source:
excludes:
[ file ]