自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(65)
  • 收藏
  • 关注

原创 [elasticsearch笔记] mapping-data type 2

文章目录demo_id/ids_index_source includes/excludesfields/analyzer/filter/search_analyzercoerce (force)copy_todoc_valuesenabledfielddatadate formatignore_abovefieldsnull_valueposition_increment_gapproperti...

2019-07-31 16:38:17 197

原创 [敏捷开发] 敏捷开发在团队落地的总结反思及改进建议

以前,当讲到我们团队采用敏捷开发进行APP迭代的时候,我会把“敏捷”二字打上引号。但是最近总结、反思、参加TAPD分享会、公司组织的敏捷培训以及系统的学习了敏捷的理论知识后,我觉得应该把这个引号给去掉。本文将从 什么是敏捷、待优化的地方及建议 及 总结 三个方向阐述。什么是敏捷,我们敏捷吗?个人认为,敏捷的核心就是:“小步快走、迭代优化”。“小”:指Stroy要小、落地开发的Task要小...

2019-07-31 09:57:50 1635

原创 [elasticsearch笔记] mapping-data type1

demo## 最开始,type被类比成数据库的table,但是lucene底层对于同一index下面相同的field(type不同)必须是要同种类型,即lucene底层会把index下所有相同的field一致对待。# 多个type不利于数据压缩# 全文检索中用于计分的词条统计会更精准#PUT my_index { "mappings": { "properties": {...

2019-07-30 18:30:39 258

原创 [elasticsearch笔记] 优化(updating)

网络资源搜集,待消化https://blog.csdn.net/laoyang360/article/details/97695931

2019-07-30 16:14:23 102

原创 [elasticsearch笔记] Scripting

文章目录notesdemopainlessexpressionmustacheDIY plugin in javanotes支持脚本:painless ,expression , mustache, java。点击详情查看demopainlessPUT script_text_v1{ "mappings": { "properties": { "title": ...

2019-07-29 15:19:06 130

原创 [elasticsearch笔记] Query DSL Term - exists/must_not/fuzzy/ids/prefix/range/regexp/term/terms/wildcard

文章目录notesdemoexists/must_notfuzzyidsprefixrangeregexpterm/termswildcardterms_setnotes正则demoexists/must_notGET /kibana_sample_data_logs/_search?size=1GET /kibana_sample_data_flights/_search?si...

2019-07-29 11:48:51 305

原创 docker-compose 安装 ES集群及ELK等相关软件

本文介绍通过 docker-compose 构建 ES 集群及ELK等相关软件。制作包含analysis-ik、analysis-pinyin等插件的ES镜像,Dockerfile如下# Docker image of elasticsearch with ik and pinyin# VERSION 7.2.0# Author: zhengcj01FROM elasticsear...

2019-07-27 21:09:47 262

原创 docker详解

docker命令demo# mongo docker run -p 27017:27017 --name mongo -v /mydata/mongo/db:/data/db -d mongo:3.2docker exec -it mongo mongodocker rm -f $(docker ps -a -q)docker inspect es7_01docker inspect...

2019-07-26 17:28:01 232

原创 [elasticsearch笔记] Query DSL- distance_feature/more_like_this/rank_feature/script/wrapper query

文章目录distance_featuremore_like_thisrank_featurescriptdistance_featurePUT items{ "mappings": { "properties": { "name": { "type": "keyword" }, "production_date": { ...

2019-07-26 14:05:59 552

原创 [elasticsearch笔记] Query DSL - percolate

notepercolate 过滤器、抽取器percolate 中 index 存储的是query。普通的方式中index存储的是 doc应用场景:数据分类和各种自定义监控,如 数据监控,价格波动监控、天气监控、报警等demoPUT /percolator-index{ "mappings": { "properties": { "m...

2019-07-26 11:37:26 335

原创 [elasticsearch笔记] Query DSL - span

noteSpan queries cannot be mixed with non-span queries (with the exception of the span_multi query).It is only allowed to set boost on an outer span query.demo# 查询内部会有多个子查询,但是会设定某个子查询优先级更高,作用更大...

2019-07-26 10:22:01 199

原创 swagger 使用详解

本文主要介绍swagger的使用问题

2019-07-25 17:12:39 1128

原创 mall商城源码分析 - 权限hasAuth

response demo 来自开源项目 mallhasAuthority// org.springframework.security.core.userdetailspublic interface UserDetails extends Serializable { Collection<? extends GrantedAuthority> getAuthorit...

2019-07-25 17:08:20 661

原创 mall商城源码分析-Aspect

response demo 来自开源项目 mallAspect org.aspectj.lang.annotationdependency<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent&lt...

2019-07-25 17:03:01 292

原创 mall商城源码分析- response demo

response demo 来自开源项目 mallresponse demopublic class CommonPage<T> { private Integer pageNum; private Integer pageSize; private Integer totalPage; private Long total; private...

2019-07-25 17:00:06 396

原创 [elasticsearch笔记] Joining Queries - nested/join

note干货 | Elasticsearch Nested类型深入详解elasticsearch(lucene)使用的库没有内部对象的概念,因此内部对象被扁平化为一个简单的字段名称和值列表。为了解决这个问题,需要用到 nested,nested对象会被作为隐式对象处理。其内容不会被扁平化处理。关联 doc 必须保存于同一个分片,所以在构建 index的时候,需要添加 routing=pa...

2019-07-25 16:29:43 738

原创 [elasticsearch笔记] geo

notegeohash wikipedia[geohash detail](Geohash detail: https://zhuanlan.zhihu.com/p/35940647)demoGET /kibana_sample_data_flights/_search?size=1# https://en.wikipedia.org/wiki/Geohash# Geohash ...

2019-07-25 11:58:31 127

原创 [elasticsearch笔记] Query DSL-intervals

目录intervals 满足不同部分Querymatch/multi_match/should/match_bool_prefixcommon/termquery_string/simple_query_stringintervals 满足不同部分QueryPOST _search{ "query": { "intervals": { "my_text": { ...

2019-07-24 16:44:18 581

原创 Mybatis 详解

MybatisPageHelperPageHelper首先将前端传递的参数保存到page这个对象中,接着将page的副本存放入ThreadLoacl中,这样可以保证分页的时候,参数互不影响,接着利用了mybatis提供的拦截器,取得ThreadLocal的值,重新拼装分页SQL,完成分页。参考Mybatis-Generatorgithub java demo 包含 Mybatis-Gene...

2019-07-23 17:48:29 225

原创 [elasticsearch笔记] Query DSL [持续更新中]

notedemoGET /_search{ "query": { "bool": { "must": [ { "match": { "title": "Search" } }, { "match": { "cont...

2019-07-23 17:28:10 330

原创 [elasticsearch笔记] 跨集群&&集群&&API

# If no filters are given, the default is to select all nodesGET /_nodes# Explicitly select all nodesGET /_nodes/_all# Select just the local nodeGET /_nodes/_local# Select the elected master nod...

2019-07-23 14:57:20 622

原创 [高并发测试] ab测试

ab,即ApacheBench,ab测试时,建议使用内网的另一台或者多台服务器通过内网进行测试,这样得出的数据,准确度会高很多。如果只有单独的一台服务器,可以直接本地测试,比远程测试效果要准确。测试过程中,尽可能排除网络因素,得到的测试结果更加准备。sudo apt install apache2-utilsab -hab -n1000 -c10 http://localhost:9010/...

2019-07-23 11:59:01 517

原创 [elasticsearch笔记] cat

本文是 cat api 的笔记demoGET /_cat/master?vGET /_cat/master?helpGET /_cat/nodes?vGET /_cat/nodes?helpGET /_cat/nodes?h=ip,port,heapPercent,nameGET /_cat/nodes?h=ip,port,heapPercent,name,search*&...

2019-07-22 14:35:48 293

原创 [elasticsearch笔记] cache/flush/refresh/forcemerge/shard_stores

note本文主要包含 数据缓存、数据同步 相关APIdemoGET /kibana_sample_data_ecommerce/_shard_storesGET /kibana_sample_data_ecommerce/_search# green, yellow, redGET /_shard_stores?status=greenPOST /twitter/_cach...

2019-07-22 11:11:49 330

原创 Spring Boot与Kubernetes云原生微服务实践 [持续更新中]

本文是 极客时间 杨波 《Spring Boot 与 Kubernetes 云原生微服务实践》 的学习笔记。如果有兴趣,欢迎订阅扫码订阅数据校验PhoneNumberPhoneNumberValidator全局错误处理Spring Boot 错误异常梳理Spring mvc 错误异常处理DTO 和 DMOView ObjectData Transfer Ob...

2019-07-22 11:08:35 3721

原创 RabbitMQ 详解

RabbitMQ 基本理论RabbitMQ 基本理论主要概念:Queue、Exchange(交换机)、Routefanout: 消息通过Exchange发送给所有队列direct:消息通过Exchange发送到BindingKey和RoutingKey一样的队列中topic:消息通过Exchange发送到BindingKey可匹配RoutingKey的队列中h...

2019-07-19 15:26:13 257

原创 [elasticsearch笔记] 其他

demoGET kibana_sample_data_ecommerce,kibana_sample_data_flights/_recovery?humanGET /_recovery?humanGET _recovery?human&detailed=true

2019-07-18 18:05:31 108

原创 [elasticsearch笔记] _stats/_segments

demoGET twitter/_statsGET twitter/_stats/merge# Get back stats for merge and refresh only for all indicesGET /_stats/merge,refresh# Get back stats for type1 and type2 documents for the my_index i...

2019-07-18 18:03:24 716

原创 [elasticsearch笔记] _template

demo## {index} 是占位符,会被实际index的名称替换#PUT _template/template_1{ "index_patterns": [ "te*", "bar*" ], "settings": { "number_of_shards": 1 }, "mappings": { "_source": { ...

2019-07-18 18:01:56 868

原创 [elasticsearch笔记] _analyze

demoGET _analyze{ "analyzer": "standard", "text": "this is a test"}GET _analyze{ "analyzer": "standard", "text": [ "This is a test", "the second text" ]}GET _analyze{ "to...

2019-07-18 16:52:00 1146

原创 [elasticsearch笔记] Index aliases

demoDELETE twitterPUT twitter {}PUT twitter/_mapping { "properties": { "email": { "type": "keyword" } }}## 1. 新属性可以被加到对象数据域中# 2. 新的多字段可以加入到已有字段中# 3. 可以更新 ignore_above # ...

2019-07-18 14:56:56 158

原创 redis详情

redis的过期时间和过期删除机制

2019-07-17 15:10:40 182

原创 [elasticsearch笔记] Index Shrink/Split/rollover

notetarget 的 primary 数是 source 的 primary的 factor。如 source_primary = 8, target_primary 可以为 1,2,4Shrink 步骤新建 target index,index定义相同,但是primary更下从source 到 target,进行 hard-links. 如果系统不支持,则copy,会比较耗时恢...

2019-07-17 14:00:49 248

原创 mysql常见问题

关于乱码、字符集全面了解mysql中utf8和utf8mb4的区别记住,永远不要在MySQL中使用“utf8”,要使用utf8mb4

2019-07-17 10:45:03 64

原创 热点数据相关[持续更新中]

Redis热点Key发现及常见解决方案

2019-07-17 10:37:28 161

原创 java slf4j Logger 剖析[持续更新中]

《slf4j源码解析》 对于LoggerFactory的详细过程有剖析,并且对于自定义一个日志框架嫁接入slf4j管理也有详细的步骤说明。本文讲给予该文章做一定补充说明。slf4j Logger UML设计图in logbackch.qos.logback.classic.LoggerContext in logbackch.qos.logback.classic.Logger i...

2019-07-16 20:05:56 580

原创 [elasticsearch笔记] index create/delete/get/head/open/close/_settings

noteindex命名限制仅支持小写不能包含 , /, * , ?, ", < , > , | ,` ,空格 , 逗号, #7.0 之前可以包含 : ,7.0 之后不可以不能以 - , _ , + 开头不能是 . …不能超过255字节,注意不是字符长度,而是字节数demoDELETE twitterPUT twitter{ "settings": {...

2019-07-16 15:31:15 205

转载 Dubbo、SpringCloud、K8S该如何选型

本文内容来自 极客时间 杨波 《Spring Boot 与 Kubernetes》云原生微服务实践,欢迎订阅学习推荐不要混搭K8S平台级别抽象,云时代标配K8S+Spring Boot...

2019-07-16 14:02:21 1606

原创 [elasticsearch笔记] aggregation-bucket/metric/pipeline

POST /_search{ "aggs": { "sales_per_month": { "date_histogram": { "field": "date", "calendar_interval": "month" }, "aggs": { "sales": { "sum"...

2019-07-16 13:43:27 597

原创 [elasticsearch笔记] aggregation-moving_avg

moving_avgPOST kibana_sample_data_logs/_search?size=0{ "aggs": { "my_date_histo": { "date_histogram": { "field": "timestamp", "calendar_interval": "day" }, "...

2019-07-16 11:09:23 451

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除