摘要: Elasticsearch建立mapping关系时,默认会给string类型加上分词。 所以例如openid这种,如果你用默认的分词,就可能会出现查不到数据的情况。 解决方案: 1.将数据备份 2.recreate index 3.create new mapping 给openid加上 "inde 阅读全文
posted @ 2017-02-27 11:00 半岛弥情 阅读(261) 评论(0) 推荐(0) 编辑