上一页 1 ··· 7 8 9 10 11 12 13 14 下一页
摘要: package com.session.demo;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBoo... 阅读全文
posted @ 2018-01-11 23:05 _chenyl 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Spring Security启用csrf防护后,会对post、delete、put等请求进行安全校验。过程是,请求里必须携带crfs的tocken,如果请求里不带有tocken时,服务器会认为该请求非法,请求就会被拒绝。如何处理? 1 在页面mate进行... 阅读全文
posted @ 2017-11-23 17:16 _chenyl 阅读(188) 评论(0) 推荐(0) 编辑
摘要: https://gitee.com/luckycyl/ElasticSearchDemo 阅读全文
posted @ 2017-10-19 09:26 _chenyl 阅读(41) 评论(0) 推荐(0) 编辑
摘要: sudo gedit /etc/sysctl.conf在该文件任意地方加入:vm.max_map_count=655360sudo sysctl -p重启ES 阅读全文
posted @ 2017-10-17 17:13 _chenyl 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 一 子条件查询:特定字段查询所指特定值。分为:Query context和Filter context 1 Query context 概念:在查询中,除了判断文档是否满足查询条件外,ES还会计算一个_score来标识匹配的程度,旨在判断目标文档和... 阅读全文
posted @ 2017-10-17 15:57 _chenyl 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 简单查询、条件查询、聚合查询 (1)创建book索引 代码: { "settings":{ "number_of_shards":3, "number_of_replicas":1 }, "mappings":{ "novel":{ ... 阅读全文
posted @ 2017-10-17 00:16 _chenyl 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 删除文档、删除索引 (1)利用Postman删除文档 (2)利用head插件删除索引操作 book索引已经不见了 (3)利用Postman删除索引 删除索引会清空所有数据,所以删除索引操作超级危险,不... 阅读全文
posted @ 2017-10-16 21:34 _chenyl 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 方式:直接修改、通过脚本修改 直接修改 (1)修改id为1的数据 (2)查看 脚本修改 { "script":{ "lang":"painless", "inline":"... 阅读全文
posted @ 2017-10-16 17:18 _chenyl 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 分类:分为指定文档id插入、自动产生文档id插入两类。(文档id是唯一索引指,指向索引数据) 1 自己指定id { "name":"瓦力", "country":"China", "age":30, "date":"1987-3-7"} 点击send... 阅读全文
posted @ 2017-10-15 14:24 _chenyl 阅读(187) 评论(0) 推荐(0) 编辑
摘要: RESTFul API 格式:http://:/// 常用动词:GET/PUT/POST/DELETE 索引创建:非结构化创建、结构化创建 非结构化创建 粗片框是主分片,细线框是备份分片一一对应。 如何区分结构化与非结构化索引 如何创建结构化索引 ... 阅读全文
posted @ 2017-10-15 13:31 _chenyl 阅读(55) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 下一页