我首先使用Elasticsearch和Kibana,所以请保持冷静回答我的问题!
我得到了一个已经有一个索引叫做
dai-*
ad-prior
. 然后,我继续向这两个指数提供如下数据:
{'obj_id': 'UHDRXEWEEK', 'event_type': 'PREC_AD_STARTED', 'event_id': '5c6b584373d', 'timestamp': 1550540223736L, 'channel_id': '123456789'}
{'obj_id': 'FDREJJSSHE', 'event_type': 'PREC_AD_STARTED', 'event_id': '4f53jhabd24', 'timestamp': 1550540225872L, 'channel_id': '123456789'}
event_type.keyword:PREC_AD_STARTED
event_type:PREC_AD_STARTED
event_type:'PREC_AD_STARTED'
索引
戴-*
367 hits
.
索引
:以上搜索返回了不同的结果:
event_type:PREC_AD_STARTED
返回
8 hits
但是另外两个人回来了
0 hits
为什么上面的搜索返回相同的结果
戴-*
返回的结果不同
事先通知
?
更新
为了回答@Nishant Saini的评论,我抓取了我假设的映射
event_type
为
戴-*
:
"event_type": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
为
事先通知
"event_type": {
"type": "keyword",
"ignore_above": 1024
}