0
我有用于Elasticsearch的附件插件来索引存储在Document中的所有文件。我想排除存储在_source中的文件内容。使用foqelasticabundle排除_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:弹性弯曲:填充我仍然可以看到“文件”属性被存储在_source。我找不出什么是缺失的。请帮助
什么是你的类型的名称?当你从elasticsearch获取映射时,你会看到什么?与你提交的一样,还是只有一部分? – javanna 2013-04-29 18:21:33
感谢您的回复。它是symfony2中foqelasticabundle的配置。如果“文档”是类型的名称。它是一种附件类型。当我查询“文档”时,_source中的结果仍包含“文件”属性。 – 2013-04-30 04:50:58