
elasticsearch
停止使用此论坛
转到博客园!
展开
-
springboot +elastcsearch多数据源 (相同 + 完全独立)
elasticsearch.wh.clusterName=whELKelasticsearch.wh.userName=elasticsearch.wh.password=elasticsearch.wh.rest.hostNames=192.168.1.130elasticsearch.wh.rest.port=9200elasticsearch.wh.tcp.port=9300e...原创 2020-05-07 09:02:21 · 855 阅读 · 0 评论 -
elasticsearch 多重分组并取组内最小值两个方案
//sql 版本SELECT id,estate_name,house_type,price FROM ( SELECT id,estate_name,house_type,price, ROW_NUMBER () OVER ( PARTITION BY estate_name,house_type ORDER BY price ASC) rownum FROM property ...原创 2019-10-23 09:45:03 · 1360 阅读 · 0 评论 -
elasticsearch分组并获得分组里面的结果
GET dss_checkin_index/_search{ "size": 0, "query": { "bool": { "must": [ { "range": { "checkInTime": {原创 2019-01-21 08:34:03 · 6785 阅读 · 0 评论 -
elasticsearch实现sql 几个字段相加 条件判断
select * from [fre_userlianghua] where [shop_id]='195' and ([fangyuanshou]+[fangyuanzu]+[keyuanshou]+[keyuanzu]+[yaoshi]+[fangkan]+[dianhua1]+[daikan]+[dianhua2]+[shengming1]+[shengming2])<3GET d...原创 2018-12-25 09:10:24 · 6034 阅读 · 0 评论 -
elasticsearch注解实现fields
mapping效果:"label": { "type": "keyword", "fields": { "IKS": { "type": "text", "analyzer": "ikIndexAna原创 2018-12-06 10:21:26 · 4322 阅读 · 0 评论 -
springboot2.1.0集成elasticsearch一个小
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artifactId> <version>${spring.boot.version}...原创 2018-11-07 15:56:45 · 1496 阅读 · 0 评论 -
elasticsearch批量更新全部文档的某个字段
POST property_index/property_info/_update_by_query{ &amp;quot;script&amp;quot;: { &amp;quot;lang&amp;quot;: &amp;quot;painless&amp;quot;, &amp;quot;inline&amp;quot;: &amp;qu原创 2018-09-26 16:03:17 · 11578 阅读 · 0 评论 -
RestHighLevelClient 实现 select count from table group by filed
String id = null;try {SearchRequest request = new SearchRequest(IndexAndTypeConstant.PROPERTY_SQL); request.types(IndexAndTypeConstant.PROPERTY_SQL_TYPE); SearchSourceBuilder...原创 2018-08-29 16:11:12 · 7579 阅读 · 6 评论 -
springboot使用elasticsearch踩得坑(Windows版)
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.9.RELEASE</version> &原创 2018-01-30 11:46:57 · 3575 阅读 · 1 评论 -
ElasticSearch-6.1.1安装head插件
准备windows7JDK-1.8ElasticSearch-6.1.1node-v9.4.0-x64.msigit下载node.js ,网址:https://nodejs.org/en/安装node到D盘。如D:\nodejs。把NODE_HOME设置到环境变量里(安装包也会自动加入PATH环境变量)。测试一下node是否生效: 安装gruntgrunt是一个很方便的构建工具,可以进原创 2018-01-29 16:54:55 · 331 阅读 · 0 评论 -
springboot 集成 elasticsearch(maven项目)
1.搭建springboot项目,能跑起来(具体百度,我的springboot版本 1.5.9.RELEASE)2.本机或者服务器安装elasticsearch并启动服务成功(我本地Windows安装的elasticsearch版本6.1.1)3.pom引入依赖dependency> groupId>org.springframework.bootgroupId> ar原创 2018-01-24 15:54:23 · 4668 阅读 · 0 评论 -
ElasticsearchTemplate的详细使用,完成多条件查询、匹配度查询等
详情:http://blog.youkuaiyun.com/tianyaleixiaowu/article/details/77965257@PostMapping("/searchbookinfo") public Object searchbookinfo(@RequestBody MapString, Object> params) { String keyword = pa转载 2018-01-31 14:07:32 · 3162 阅读 · 0 评论