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
阅读全文
摘要:version: '3' services: es01: image: docker.elastic.co/elasticsearch/elasticsearch:7.15.0 container_name: es01 restart: always environment: - "ES_JAVA_
阅读全文
摘要:PUT my_index { "mappings":{ "properties":{ "title":{ "type":"text", "analyzer": "ik_max_word", "search_analyzer": "ik_max_word" } } } } PUT my_index1/
阅读全文
摘要:(一)text字段和keyword字段的区别 以下给出一个例子: 首先建立一个索引和类型,引入一个keywork的字段: PUT my_index { "mappings": { "products": { "properties": { "name": { "type": "keyword" }
阅读全文