09 2021 档案

摘要:https://www.cnblogs.com/werben/p/11550412.html 一、elasticsearch的Dockerfile 增加中文搜索插件analysis-ik 1 2 3 4 5 6 7 8 9 FROM docker.elastic.co/elasticsearch/e 阅读全文
posted @ 2021-09-30 18:02 酷酷的城池 阅读(187) 评论(0) 推荐(0) 编辑
摘要:version: '3' services: es01: image: docker.elastic.co/elasticsearch/elasticsearch:7.15.0 container_name: es01 restart: always environment: - "ES_JAVA_ 阅读全文
posted @ 2021-09-30 17:45 酷酷的城池 阅读(73) 评论(0) 推荐(0) 编辑
摘要:PUT my_index { "mappings":{ "properties":{ "title":{ "type":"text", "analyzer": "ik_max_word", "search_analyzer": "ik_max_word" } } } } PUT my_index1/ 阅读全文
posted @ 2021-09-29 10:06 酷酷的城池 阅读(31) 评论(0) 推荐(0) 编辑
摘要:(一)text字段和keyword字段的区别 以下给出一个例子: 首先建立一个索引和类型,引入一个keywork的字段: PUT my_index { "mappings": { "products": { "properties": { "name": { "type": "keyword" } 阅读全文
posted @ 2021-09-28 09:52 酷酷的城池 阅读(253) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示