【发布时间】:2014-02-03 21:59:47
【问题描述】:
我在 Elastic Search 中为我的索引定义了以下映射,其中包含一种 multi_field 类型。
{
'station': {
"properties" :{
'id': {'type': 'integer'},
'call': {'type': 'multi_field',
'fields' : {
'call': {'type': 'string', 'analyzer': 'whitespace'},
'raw': {'type': 'string', 'index': 'not_analyzed'}
}
}
}
}
}
我喜欢 Mozilla 的 ElasticUltis,但我找不到查询 multi_field 字段的方法。
我本来希望是这样的:
myQuery = S.query(call_raw__wildcard="value")
有人知道如何使用 elasticutils 查询 multi_field 字段吗?
【问题讨论】:
标签: django elasticsearch elasticutils