ES索引操作
1、创建测试索引 PUT /test_index{ "mappings": { "test_type":{ "properties": { "code":{ "type": "keyword" }, ...
1、创建测试索引 PUT /test_index{ "mappings": { "test_type":{ "properties": { "code":{ "type": "keyword" }, ...
连接ES有3中方式: ①transport方式 ②rest方式 ③JEST方式(第三方) 我自己项目使用第一种方式,代码和配置如下: 1、引入依赖 <dependency> ...
使用上篇文章创建的索引进行学习:https://www.cnblogs.com/wangymd/p/11200996.html 官方文档:https://www.elastic.co/guide/e ...