![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Elasticsearch
芃蓉蓁蓁
这个作者很懒,什么都没留下…
展开
-
动态设置ElasticSearch中@Document的index值
1.在配置文件里设置indexName(只能设置一个indexName) 创建配置Bean: @Component("esAttribute") // 指定配置文件 @PropertySource("classpath:application.properties") public class EsAttribute { @Value("${index.name}") private String indexName; public String getIndexName() {原创 2021-05-25 09:34:04 · 3064 阅读 · 1 评论 -
Elasticsearch索引及数据的查询
查询所有索引: http://ip:9200/_cat/indices?v&pretty 查询某个索引的状态数据量等: http://ip:9200/_cat/indices/indexName?v 查询某个索引的所有数据: http://ip:9200/indexName/_search?pretty 查询某个索引的数据结构: http://ip:9200/indexName/_mapping?pretty 查询以tomcat开头的索引的所有数据:http://ip:9200/tomcat*/_s原创 2021-05-22 10:19:39 · 353 阅读 · 0 评论