美文网首页
记一次elasticsearch错误(SearchPhaseEx

记一次elasticsearch错误(SearchPhaseEx

作者: dozenx | 来源:发表于2021-04-20 20:42 被阅读0次

碰到一个问题,建立好的索引 在kibana console 里能查看查询

get /apidb/_mapping

get /apidb/_search

但是在kibana的discover 中查询会报错

猜测是

没有加这个

"settings": {

"number_of_shards": 5,

"number_of_replicas": 2

},

我建立了一个apidb1用来测试

然后让kibana discover 去查这个

需要给apidb1创建索引模式

一个 索引模式 标识一个或者多个您想要通过 kiabna 探索的 Elasticsearch 索引。Kibana 会查找与指定模式匹配的索引名称。模式中的星号 () 匹配0个或者多个字符。例如,模式 myindex- 匹配所有名称中以 myindex- 开头的索引,如 myindex-1 和 myindex-2 。

https://www.elastic.co/guide/cn/kibana/current/index-patterns.html#settings-create-pattern

image.jpeg image.jpeg

这下有了

然后赶紧把apidb删除了加上settting 然后从新加入数据就好了

相关文章

网友评论

      本文标题:记一次elasticsearch错误(SearchPhaseEx

      本文链接:https://www.haomeiwen.com/subject/agcolltx.html