
Elasticsearch
搜索引擎学习
G0o0o0o
这个作者很懒,什么都没留下…
展开
-
Elasticsearch Exception [type=illegal_argument_exception, reason=Document contains at least one imme
Elasticsearch Exception [type=illegal_argument_exception, reason=Document contains at least one immense term in field=“xxxx”(whose UTF8 encoding is longer than the max length 32766),all of which were skipped. Please correct the analyzer to not produce such原创 2021-03-05 13:55:49 · 1507 阅读 · 0 评论 -
RestHighLevelClient操作Elasticsearch同步操作
RestHighLevelClient整理6.1. 创建索引 CreateIndexRequest request = new CreateIndexRequest(indexName) ; //一个分片 一个备份 request.settings(Settings.builder().put("index.number_of_shards" , 1).put("index.number_of_replicas" , 1)); //配置mappings原创 2021-01-31 15:11:17 · 1885 阅读 · 0 评论 -
Elasticsearch和SpringBoot版本问题
Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org原创 2021-01-30 16:35:52 · 1302 阅读 · 0 评论 -
ElasticSearch入门(3)——Spring实践
ElasticSearch入门(3)——Spring实践简单的入门之后就是实践基于SpringBoot<properties> <java.version>1.8</java.version> <elasticsearch.version>7.6.2</elasticsearch.version> </properties> <dependencies>原创 2020-08-04 21:57:26 · 220 阅读 · 0 评论 -
ElasticSearch入门(2) —— 基本操作
ElasticSearch入门(2) —— 基本操作文章目录ElasticSearch入门(2) —— 基本操作简单操作复杂操作查询text 和 keyword高亮查询简单操作指定属性查询//name 和 法外狂徒 是绝对相等的//原因是name设置的是keyword 整体搜索才能查到GET test3/_doc/_search?q=name:法外狂徒{ "took" : 115, "timed_out" : false, "_shards" : { "total" :原创 2020-08-04 21:56:12 · 227 阅读 · 0 评论 -
ElasticSearch入门(1)——了解ES
ElasticSearch入门(1)——了解ES文章目录ElasticSearch入门(1)——了解ES1. Lucene2. ElasticSearch1. ES开启跨域2. 索引 - index3. 类型 - type4. 文档 - document5. 分片 - shared6. 集群 - cluster7. 节点 - Node3. IK分词器1. ik_smart - 最少切分2. ik_max_word - 最细粒度划分3. 增加自定义字典4. 请求方式1. PUT2. GET3. POST5.原创 2020-08-04 21:25:55 · 2335 阅读 · 0 评论