我有Elasticsearch的附件插件来索引我存储在文档中的所有文件。我想排除存储在_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中。我找不出缺了什么。请帮帮忙
发布于 2013-09-10 04:34:30
如果其他任何人遇到此问题,如果您按如下方式排除您的属性,则它应该可以正常工作:
_source:
excludes:
[ file ]https://stackoverflow.com/questions/16276121
复制相似问题