我在 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 字段?