[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"site-config":3,"primary-menu":20,"tags-cloud":109,"tagposts-elasticsearch-1":293},{"config":4,"socialLinks":19},{"title":5,"subtitle":6,"logoUrl":7,"faviconUrl":8,"footerText":9,"beianIcp":10,"beianPublicSecurity":9,"seoDescription":11,"seoKeywords":12,"homepageTitle":13,"homepageSubtitle":14,"analyticsHeadCode":15,"planetQrcodeUrl":16,"planetIntroHtml":9,"planetCtaText":17,"updatedAt":18},"编码世界","用编码改变世界","https:\u002F\u002Fcdn.mashangan.com\u002Fupload\u002F2026\u002F09\u002F2f277021172f43f6bb34e1c115760b7f.png","https:\u002F\u002Fcdn.mashangan.com\u002Fupload\u002F2026\u002F09\u002Fdcbad022e68c4a729a5dc4997a9bba8a.png","","苏ICP备2026073884号","编码世界（mashangan.com）是面向 Java 后端与 Go 语言的系统化编程教程站：提供\nMyBatis Plus、Lombok、Java 8、IDEA、Docker 等原创图文教程，以及 JVM、并发、\nSpring、MySQL、Redis、消息队列、计算机网络等大厂面试八股题库，另有可落地的\n项目实战系列，帮你从入门到精通。","编码世界,Java教程,Go语言教程,Docker教程,MyBatis Plus教程,Lombok教程, Java 8新特性,IDEA教程,Java面试题,八股文,JVM面试题,Java并发面试题, MySQL面试题,Redis面试题,Spring面试题,消息队列面试题,高并发,分库分表, Netty面试题,计算机网络面试题,AI Agent,RAG,程序员学习路线","Java全栈系统化编程教程","覆盖 MyBatis Plus、Lombok、Java 8、IDEA、Go、Docker 等原创图文教程，配套大厂面试八股题库，从入门到精通，持续更新","\u003Cscript>\nvar _hmt = _hmt || [];\n(function() {\n  var hm = document.createElement(\"script\");\n  hm.src = \"https:\u002F\u002Fhm.baidu.com\u002Fhm.js?f00af7e56d956c02e11efed4131379b0\";\n  var s = document.getElementsByTagName(\"script\")[0]; \n  s.parentNode.insertBefore(hm, s);\n})();\n\u003C\u002Fscript>\n","https:\u002F\u002Fcdn.mashangan.com\u002Fupload\u002F2026\u002F09\u002Fc1a8f5de46584d3eb0bc762c180a5db9.png","扫码加入知识星球","2026-10-05T13:09:51.904487Z",[],{"metadata":21,"spec":24,"menuItems":35},{"name":22,"creationTimestamp":23},"primary","2026-09-12T06:13:55.024154Z",{"displayName":25,"menuItems":26},"主菜单",[27,28,29,30,31,32,33,34],"88c3f10b-321c-4092-86a8-70db00251b74","menu-item-izrtmxer","c4c814d1-0c2c-456b-8c96-4864965fee94","menu-item-tags","menu-item-column","menu-item-tools","menu-item-zsxq","menu-item-ocrxlczu",[36,45,55,64,73,82,91,100],{"displayName":37,"metadata":38,"spec":40,"status":43,"children":44},"首页",{"name":27,"creationTimestamp":39},"2026-09-12T06:13:54.422830Z",{"displayName":37,"href":41,"priority":42,"menuName":22},"\u002F",0,{"displayName":37,"href":41},[],{"displayName":46,"metadata":47,"spec":49,"status":53,"children":54},"Java面试八股",{"name":28,"creationTimestamp":48},"2026-09-13T09:42:02.854891Z",{"displayName":46,"href":50,"target":51,"priority":52,"menuName":22},"\u002Fjava-interview","_self",1,{"displayName":46,"href":50},[],{"displayName":56,"metadata":57,"spec":59,"status":62,"children":63},"文章",{"name":29,"creationTimestamp":58},"2026-09-12T06:13:54.457307Z",{"displayName":56,"href":60,"priority":61,"menuName":22},"\u002Farchives",2,{"displayName":56,"href":60},[],{"displayName":65,"metadata":66,"spec":68,"status":71,"children":72},"标签",{"name":30,"creationTimestamp":67},"2026-10-07T00:42:42.754151Z",{"displayName":65,"href":69,"priority":70,"menuName":22},"\u002Ftags",3,{"displayName":65,"href":69},[],{"displayName":74,"metadata":75,"spec":77,"status":80,"children":81},"项目实战",{"name":31,"creationTimestamp":76},"2026-09-14T00:35:08.138170Z",{"displayName":74,"href":78,"target":51,"priority":79,"menuName":22},"\u002Fcolumn",4,{"displayName":74,"href":78},[],{"displayName":83,"metadata":84,"spec":86,"status":89,"children":90},"在线工具",{"name":32,"creationTimestamp":85},"2026-09-14T00:35:08.171474Z",{"displayName":83,"href":87,"target":51,"priority":88,"menuName":22},"\u002Ftools",5,{"displayName":83,"href":87},[],{"displayName":92,"metadata":93,"spec":95,"status":98,"children":99},"知识星球",{"name":33,"creationTimestamp":94},"2026-09-14T00:35:08.199145Z",{"displayName":92,"href":96,"target":51,"priority":97,"menuName":22},"\u002Fzsxq",6,{"displayName":92,"href":96},[],{"displayName":101,"metadata":102,"spec":104,"status":107,"children":108},"特价云服务",{"name":34,"creationTimestamp":103},"2026-09-25T15:30:59.201614Z",{"displayName":101,"href":105,"target":51,"priority":106,"menuName":22},"\u002Fserver",7,{"displayName":101,"href":105},[],[110,117,124,131,138,145,152,159,166,172,178,184,191,197,203,209,215,221,227,233,239,245,251,257,263,269,275,281,287],{"metadata":111,"spec":113,"postCount":116},{"name":112},"tag-04980744",{"displayName":114,"slug":115},"面试题","interview",118,{"metadata":118,"spec":120,"postCount":123},{"name":119},"tag-93f725a0",{"displayName":121,"slug":122},"Java","java",68,{"metadata":125,"spec":127,"postCount":130},{"name":126},"tag-05b6053c",{"displayName":128,"slug":129},"Docker","docker",43,{"metadata":132,"spec":134,"postCount":137},{"name":133},"tag-1cba77c3",{"displayName":135,"slug":136},"IDEA","idea",32,{"metadata":139,"spec":141,"postCount":144},{"name":140},"tag-116a0109",{"displayName":142,"slug":143},"数字孪生","digital-twin",19,{"metadata":146,"spec":148,"postCount":151},{"name":147},"tag-a2fb95ac",{"displayName":149,"slug":150},"MyBatis Plus","mybatis-plus",18,{"metadata":153,"spec":155,"postCount":158},{"name":154},"tag-cc6220f9",{"displayName":156,"slug":157},"Lombok","lombok",15,{"metadata":160,"spec":162,"postCount":165},{"name":161},"tag-2a2d595e",{"displayName":163,"slug":164},"Spring","spring",10,{"metadata":167,"spec":169,"postCount":165},{"name":168},"tag-1d8a4975",{"displayName":170,"slug":171},"消息队列","mq",{"metadata":173,"spec":175,"postCount":165},{"name":174},"tag-17245299",{"displayName":176,"slug":177},"并发","concurrency",{"metadata":179,"spec":181,"postCount":165},{"name":180},"tag-4921c0e2",{"displayName":182,"slug":183},"AI","ai",{"metadata":185,"spec":187,"postCount":190},{"name":186},"tag-53bb7900",{"displayName":188,"slug":189},"卫星仿真","satellite",9,{"metadata":192,"spec":194,"postCount":88},{"name":193},"tag-62377bcf",{"displayName":195,"slug":196},"Spring Cloud","spring-cloud",{"metadata":198,"spec":200,"postCount":88},{"name":199},"tag-81c3b080",{"displayName":201,"slug":202},"MySQL","mysql",{"metadata":204,"spec":206,"postCount":88},{"name":205},"tag-86a1b907",{"displayName":207,"slug":208},"Redis","redis",{"metadata":210,"spec":212,"postCount":88},{"name":211},"tag-18897dcf",{"displayName":213,"slug":214},"Elasticsearch","elasticsearch",{"metadata":216,"spec":218,"postCount":88},{"name":217},"tag-6ce80d8e",{"displayName":219,"slug":220},"JVM","jvm",{"metadata":222,"spec":224,"postCount":88},{"name":223},"tag-aa4e1b8c",{"displayName":225,"slug":226},"Dubbo","dubbo",{"metadata":228,"spec":230,"postCount":88},{"name":229},"tag-9e30c249",{"displayName":231,"slug":232},"Netty","netty",{"metadata":234,"spec":236,"postCount":88},{"name":235},"tag-2199ace5",{"displayName":237,"slug":238},"ZooKeeper","zookeeper",{"metadata":240,"spec":242,"postCount":88},{"name":241},"tag-7c298a76",{"displayName":243,"slug":244},"设计模式","design-pattern",{"metadata":246,"spec":248,"postCount":88},{"name":247},"tag-6cf6cea9",{"displayName":249,"slug":250},"高可用","high-availability",{"metadata":252,"spec":254,"postCount":88},{"name":253},"tag-918786ab",{"displayName":255,"slug":256},"分库分表","sharding",{"metadata":258,"spec":260,"postCount":88},{"name":259},"tag-91e02cd2",{"displayName":261,"slug":262},"计算机网络","network",{"metadata":264,"spec":266,"postCount":88},{"name":265},"tag-dd302f94",{"displayName":267,"slug":268},"操作系统","os",{"metadata":270,"spec":272,"postCount":88},{"name":271},"tag-1b359d87",{"displayName":273,"slug":274},"Tomcat","tomcat",{"metadata":276,"spec":278,"postCount":79},{"name":277},"tag-f0d71b77",{"displayName":279,"slug":280},"MyBatis","mybatis",{"metadata":282,"spec":284,"postCount":52},{"name":283},"tag-a118a308",{"displayName":285,"slug":286},"时序数据库","tsdb",{"metadata":288,"spec":290,"postCount":42},{"name":289},"tag-34d1f91f",{"displayName":291,"slug":292},"Go","go",{"page":52,"size":294,"total":88,"items":295,"first":304,"last":304,"hasNext":308,"hasPrevious":308,"totalPages":52},20,[296,334,363,392,421],{"metadata":297,"spec":300,"status":310,"categories":315,"tags":327},{"name":298,"creationTimestamp":299},"post-es-optimize-53774e14","2026-09-13T10:01:16.647823Z",{"title":301,"slug":302,"cover":9,"excerpt":303,"publishTime":305,"categories":306,"tags":307,"priority":42,"pinned":308,"deleted":308,"visible":309,"allowComment":304},"Elasticsearch 性能优化？","es-optimize",{"raw":9,"autoGenerate":304},true,"2026-09-13T10:01:16.693387Z",[214],[112,211],false,"PUBLIC",{"permalink":311,"excerpt":312,"lastModifyTime":313,"phase":314},"\u002Farchives\u002Fes-optimize","一、写入优化 批量写入（Bulk API），减少网络开销。 增加 refresh_interval（如 30s），减少 refresh 频率。 关闭副本，写完再开。 用 SSD 存储。 TransLog 异步刷盘。 二、查询优化 用 filter 替代 query 做过滤。 避免深度分页，用 sea","2026-09-16T09:16:45.471802Z","PUBLISHED",[316],{"metadata":317,"spec":322,"status":325,"postCount":88},{"name":214,"creationTimestamp":318,"labels":319,"annotations":320},"2026-09-13T09:13:26.098074Z",{"haloweb.section":115},{"tutorial.halo.run\u002Fstatus":321},"updating",{"displayName":323,"slug":214,"cover":9,"description":324,"priority":137,"hideFromList":308,"preventParentPostCascadeQuery":308},"Elasticsearch 面试题","Elasticsearch 面试题精讲：倒排索引、分词检索、聚合分析、集群分片与写入查询调优。",{"permalink":326,"postCount":88,"visiblePostCount":88},"\u002Fcategories\u002Felasticsearch",[328,331],{"metadata":329,"spec":330},{"name":112},{"displayName":114,"slug":115},{"metadata":332,"spec":333},{"name":211},{"displayName":213,"slug":214},{"metadata":335,"spec":338,"status":345,"categories":349,"tags":356},{"name":336,"creationTimestamp":337},"post-es-cluster-9db8e817","2026-09-13T10:01:16.451613Z",{"title":339,"slug":340,"cover":9,"excerpt":341,"publishTime":342,"categories":343,"tags":344,"priority":42,"pinned":308,"deleted":308,"visible":309,"allowComment":304},"Elasticsearch 集群架构？","es-cluster",{"raw":9,"autoGenerate":304},"2026-09-13T10:01:16.505423Z",[214],[211,112],{"permalink":346,"excerpt":347,"lastModifyTime":348,"phase":314},"\u002Farchives\u002Fes-cluster","一、节点角色 Master：管理集群元数据，选举。 Data：存储分片数据，执行 CRUD、搜索。 Ingest：数据预处理（pipeline）。 Coordinating：路由请求，合并结果。 Machine Learning：机器学习。 Remote Cluster：跨集群搜索。 二、分片 In","2026-09-16T09:16:45.007110Z",[350],{"metadata":351,"spec":354,"status":355,"postCount":88},{"name":214,"creationTimestamp":318,"labels":352,"annotations":353},{"haloweb.section":115},{"tutorial.halo.run\u002Fstatus":321},{"displayName":323,"slug":214,"cover":9,"description":324,"priority":137,"hideFromList":308,"preventParentPostCascadeQuery":308},{"permalink":326,"postCount":88,"visiblePostCount":88},[357,360],{"metadata":358,"spec":359},{"name":211},{"displayName":213,"slug":214},{"metadata":361,"spec":362},{"name":112},{"displayName":114,"slug":115},{"metadata":364,"spec":367,"status":374,"categories":378,"tags":385},{"name":365,"creationTimestamp":366},"post-es-query-2bd1cec3","2026-09-13T10:01:16.111595Z",{"title":368,"slug":369,"cover":9,"excerpt":370,"publishTime":371,"categories":372,"tags":373,"priority":42,"pinned":308,"deleted":308,"visible":309,"allowComment":304},"Elasticsearch 常用查询类型？","es-query",{"raw":9,"autoGenerate":304},"2026-09-13T10:01:16.311844Z",[214],[211,112],{"permalink":375,"excerpt":376,"lastModifyTime":377,"phase":314},"\u002Farchives\u002Fes-query","一、全文查询 match：对查询词分词后匹配。 match_phrase：短语匹配，词序固定。 multi_match：多字段匹配。 query_string：支持 Lucene 查询语法。 二、精确查询 term：精确匹配不分词的值。 terms：多值精确匹配。 range：范围查询。 exist","2026-09-16T09:16:44.539296Z",[379],{"metadata":380,"spec":383,"status":384,"postCount":88},{"name":214,"creationTimestamp":318,"labels":381,"annotations":382},{"haloweb.section":115},{"tutorial.halo.run\u002Fstatus":321},{"displayName":323,"slug":214,"cover":9,"description":324,"priority":137,"hideFromList":308,"preventParentPostCascadeQuery":308},{"permalink":326,"postCount":88,"visiblePostCount":88},[386,389],{"metadata":387,"spec":388},{"name":211},{"displayName":213,"slug":214},{"metadata":390,"spec":391},{"name":112},{"displayName":114,"slug":115},{"metadata":393,"spec":396,"status":403,"categories":407,"tags":414},{"name":394,"creationTimestamp":395},"post-es-inverted-index-8b7f67f9","2026-09-13T10:01:15.901010Z",{"title":397,"slug":398,"cover":9,"excerpt":399,"publishTime":400,"categories":401,"tags":402,"priority":42,"pinned":308,"deleted":308,"visible":309,"allowComment":304},"Elasticsearch 的倒排索引原理？","es-inverted-index",{"raw":9,"autoGenerate":304},"2026-09-13T10:01:15.954299Z",[214],[211,112],{"permalink":404,"excerpt":405,"lastModifyTime":406,"phase":314},"\u002Farchives\u002Fes-inverted-index","一、定义 正排索引：文档 → 词列表。 倒排索引：词 → 文档列表。 二、构建过程 文档内容分词，得到词（term）。 建立 term → [doc1, doc2, ...] 的映射。 记录词频、位置等信息。 三、示例 文档1：Java 面试\n文档2：Java 集合\n文档3：Redis 缓存\n\n倒排","2026-09-16T09:16:44.086521Z",[408],{"metadata":409,"spec":412,"status":413,"postCount":88},{"name":214,"creationTimestamp":318,"labels":410,"annotations":411},{"haloweb.section":115},{"tutorial.halo.run\u002Fstatus":321},{"displayName":323,"slug":214,"cover":9,"description":324,"priority":137,"hideFromList":308,"preventParentPostCascadeQuery":308},{"permalink":326,"postCount":88,"visiblePostCount":88},[415,418],{"metadata":416,"spec":417},{"name":211},{"displayName":213,"slug":214},{"metadata":419,"spec":420},{"name":112},{"displayName":114,"slug":115},{"metadata":422,"spec":425,"status":432,"categories":436,"tags":443},{"name":423,"creationTimestamp":424},"post-es-architecture-a6b20c5d","2026-09-13T10:01:15.732254Z",{"title":426,"slug":427,"cover":9,"excerpt":428,"publishTime":429,"categories":430,"tags":431,"priority":42,"pinned":308,"deleted":308,"visible":309,"allowComment":304},"Elasticsearch 的核心概念？","es-architecture",{"raw":9,"autoGenerate":304},"2026-09-13T10:01:15.777887Z",[214],[112,211],{"permalink":433,"excerpt":434,"lastModifyTime":435,"phase":314},"\u002Farchives\u002Fes-architecture","一、核心概念 Index（索引）：类似数据库的表，存储文档。 Document（文档）：JSON 格式的数据，类似行。 Field（字段）：文档中的键值对，类似列。 Shard（分片）：索引分成多个分片，分布在不同节点。 Replica（副本）：分片的副本，高可用。 二、集群 多个 Node 组成 ","2026-09-16T09:16:43.604221Z",[437],{"metadata":438,"spec":441,"status":442,"postCount":88},{"name":214,"creationTimestamp":318,"labels":439,"annotations":440},{"haloweb.section":115},{"tutorial.halo.run\u002Fstatus":321},{"displayName":323,"slug":214,"cover":9,"description":324,"priority":137,"hideFromList":308,"preventParentPostCascadeQuery":308},{"permalink":326,"postCount":88,"visiblePostCount":88},[444,447],{"metadata":445,"spec":446},{"name":112},{"displayName":114,"slug":115},{"metadata":448,"spec":449},{"name":211},{"displayName":213,"slug":214}]