图例1:
图例2:
{
"mappings": {
"properties": {
"title": { # 字段名称
"type": "text", # 字段类型
"analyzer": "english", # 字段分词器
"fields": { # 多字段域,固定写法
"std": { # 子字段名称
"type": "text", # 子字段类型
"analyzer": "standard" # 子字段分词器
}
}
}
}
}
}
第一种:集成RestHighLevelClient(优先)
Java从入门到架构师_Elasticsearch-优快云博客(优质)
重学Elasticsearch第6章 : SpringBoot整合RestHighLevelClient_es集群resthighlevelclient springboot-优快云博客
Springboot中使用Elasticsearch(部署+使用+讲解 最完整)_spring boot elasticsearch-优快云博客
第二种:集成spring自带的ES startar
重学Elasticsearch第7章 : SpringBoot整合SpringDataElasticsearch_spring data elasticsearch7-优快云博客
参考博客:
【Elasticsearch】Elasticsearch索引创建与管理详解_es创建索引-优快云博客
ElasticSearch:模糊查询,是match、fuzzy还是wildcard?™和SQL中like的区别_opensearch 模糊查询是用match吗?-优快云博客
es之must、filter、must_not、should_es must-优快云博客
Elasticsearch的DSL和在RestClient中的应用_elasticsearch fuzzy 和 match的区别-优快云博客