请问 elasticsearch 可以对integer进行模糊查询么?
现在只想查询最后一位为3的数据,现在的 mapping 设置为 "type": "integer"
"reason": "Can only use wildcard queries on keyword and text fields - not on [dstdevID] which is of type [integer]",
这是报错信息
现在只想查询最后一位为3的数据,现在的 mapping 设置为 "type": "integer"
"reason": "Can only use wildcard queries on keyword and text fields - not on [dstdevID] which is of type [integer]",
这是报错信息
1 个回复
Charele - Cisco4321
赞同来自:
模胡查询要依赖于FST(里的term字典和term索引)相关信息来构造状态机,
数字类型和这些毫无关系