docker 安装Elasticsearch +kibana
摘要:1、安装elasticsearch https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html docker pull docker.elastic.co/elasticsearch/elasticsearc
阅读全文
elastic 查询
摘要:1、match 查询 1、match 多条件查询 "_source": [ "_id", "is_active", "is_verified", "belong_website", "online", "nature", "account_type" ], "query": {
阅读全文
elastic 基本操作
摘要:官方参考文档: https://www.elastic.co/guide/cn/elasticsearch/guide/current/index-doc.html 1、查看 有哪些索引: curl 'localhost:9200/_cat/indices?v' 1.1查看索引结构: GET /索引
阅读全文
curl -d中的json存在引号怎么处理?
摘要:1\将其改写为I'\''m就可以执行 2\ 3\ curl -u elastic:mypass -X GET "127.0.0.1:9200/my_index/_cat/mapping?pretty" curl -u elastic:mypass -X GET "127.0.0.1:9200/my_
阅读全文
es curl 访问
摘要:1、 相关链接:https://www.jianshu.com/p/f53da7e6469c
阅读全文
ES match match_phrase term willcard的查询原理
摘要:比如:要求实现SQL中like “%xxxx%”的匹配效果。 wildcard通配 这种效果在ES中最匹配的做法是用wildcard query通配,这种情况不会对query分词,而是直接遍历倒排索引逐个匹配计算,性能是无法想象的,大家慎用。 match全文匹配 效果最差的做法是用match全文检索
阅读全文
初识Elasticsearch,bulk 操作的遇到的那些事
摘要:bulk api可以在单个请求中一次执行多个文档的 create 、 index 、 update 或 delete 操作 create 必须制定_id index 不必指定_id 会自动创建一个_id
params[′body′]=[];//创建或替换文档操作params['body']
阅读全文