“慢生活”不是懒惰,放慢速度不是拖延时间,而是让我们在生活中寻找到平衡。网站首页程序人生
elasticSearch分析
发布时间:2021-09-04 12:43:41作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
ElasticSearch分析api主要用于拆词,就是将一段文本按单词拆分,然后每天单词都返回其在整个文本中的索引(下标/偏移),包含开始偏移与结束偏移。http://localhost:9200/schools/_a
阅读全文>>elasticSearch索引设置(获取索引设置)
发布时间:2021-09-04 11:39:23作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
在elasticSearch的uri中索引名称后面紧跟一个_settings并以get方式无请求正文就能获取到该索引的一些设置信息。http://localhost:9200/schools/_settings get{ "school
阅读全文>>elasticSearch索引别名
发布时间:2021-09-04 11:05:34作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
前面了解了ealsticSearch中在创建索引时候能够附加别名的配置,那么这次主要是了解下单独为一个已经建立的索引配置别名。http://localhost:9200/_aliases post请求正文:{ "
阅读全文>>elasticSearch打开或关闭索引api及索引是否存在的判断
发布时间:2021-09-03 22:59:30作者:雪饮
![[!--pagekey--]](/d/file/manshenghuo/chengxurensheng/b1ff54e691af21b4207d23e3d2d5ba73.png)
在elasticSearch中在url中索引名后面跟上_close并以post请求,则可以关闭该索引。http://localhost:9200/schools3/_close post请求体:none响应体:{ "acknowledged": true,
阅读全文>>elasticSearch获取索引(单个与多个)
发布时间:2021-09-03 22:40:56作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
获取一个很简单,直接url上面跟上一个索引名称,用get方式获取。http://localhost:9200/schools get无请求正文响应正文如:{ "schools": { "aliases": {}, "ma
阅读全文>>