Fork me on GitHub

随笔分类 -  ES

nest客户端
摘要:一、客户端封装 using Elasticsearch.Net; using Nest; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace esdemo { 阅读全文

posted @ 2020-08-12 14:08 *Hunter 阅读(196) 评论(0) 推荐(0)

elasticsearch 安全
摘要:一、集群身份认证与用户鉴权 1,开启es安全模块 #启动单节点 bin/elasticsearch -E node.name=node0 -E cluster.name=geektime -E path.data=node0_data -E http.port=9200 -E xpack.secur 阅读全文

posted @ 2020-05-02 17:05 *Hunter 阅读(531) 评论(0) 推荐(0)

elasticsearch 集群
摘要:一、节点 1,Coordination Node ①处理请求的节点,叫Coordination Node,路由请求到正确的节点,例如创建索引的请求,需要路由到master节点 ②所有节点默认都是Coordination Node ③通过将其他类型设置false,使其成为Dedicated Coord 阅读全文

posted @ 2020-05-01 16:15 *Hunter 阅读(276) 评论(0) 推荐(0)

Search Api
摘要:语法 范围 /_search 集群上所有的索引 /index1/_search index1 /index1,index2/_search index1,index2 /index*/_search 以index开头的索引 Term :Beautiful Mind 等效于 Beautiful OR 阅读全文

posted @ 2020-04-06 23:01 *Hunter 阅读(298) 评论(0) 推荐(0)

Analyzer分词器
摘要:一、Elasticsearch内置分词器 #Simple Analyzer – 按照非字母切分(符号被过滤),小写处理 #Stop Analyzer – 小写处理,停用词过滤(the,a,is) #Whitespace Analyzer – 按照空格切分,不转小写 #Keyword Analyzer 阅读全文

posted @ 2020-04-06 22:43 *Hunter 阅读(528) 评论(0) 推荐(0)

elasticsearch简单使用
摘要:一、索引与文档 //查看索引相关信息 GET movies //查看索引文档总数 GET movies/_count 二、集群与分片 1,查看集群的健康状况 GET _cluster/health green - 主分片副本都正常分配 yellow - 主分片全部正常分配,有副本分片未能正常分配 r 阅读全文

posted @ 2020-04-06 15:58 *Hunter 阅读(422) 评论(0) 推荐(0)

centos7安装elasticsearch
摘要:本案例测试es版本等环境下载:链接: https://pan.baidu.com/s/1txx_TxE-bTYwqQEBKxtMKQ 提取码: xrrh 官网下载 https://www.elastic.co/cn/downloads/elasticsearch 一、准备环境 es需要有java环境 阅读全文

posted @ 2020-04-05 18:36 *Hunter 阅读(965) 评论(0) 推荐(0)

导航

AmazingCounters.com