摘要: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: availableProcessors is already set to [8], 阅读全文
posted @ 2020-06-04 22:22 林宇风 阅读(671) 评论(0) 推荐(0) 编辑
摘要: 环境: SpringBoot 2.1.4.RELEASE Elasticsearch 6.6.2 spring-boot-starter-data-elasticsearch pom引用 <dependency> <groupId>org.springframework.boot</groupId> 阅读全文
posted @ 2020-06-04 18:00 林宇风 阅读(685) 评论(0) 推荐(0) 编辑
摘要: 基本操作 (6.x 版本) 创建索引 curl -X PUT http://192.168.183.220:9200/test -H 'Content-Type: application/json' -d' { "settings": { "number_of_shards": 5, "number 阅读全文
posted @ 2020-06-04 17:11 林宇风 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 单节点安装 创建es.yml,内容如下: version: '3' services: elasticsearch: image: elasticsearch:6.6.2 container_name: elasticsearch environment: - cluster.name=elasti 阅读全文
posted @ 2020-06-04 16:45 林宇风 阅读(850) 评论(0) 推荐(0) 编辑
摘要: replace 语法: REPLACE ( string_expression , string_pattern , string_replacement ) 参数: string_expression 要搜索的字符串表达式。string_expression 可以是字符或二进制数据类型。 stri 阅读全文
posted @ 2020-06-04 09:09 林宇风 阅读(2740) 评论(0) 推荐(0) 编辑