Skip to content

Commit

Permalink
update from gridea: 2020-02-11 16:00:00
Browse files Browse the repository at this point in the history
  • Loading branch information
kingofzihua committed Feb 11, 2020
1 parent 1c8b97a commit b47d981
Show file tree
Hide file tree
Showing 49 changed files with 278 additions and 278 deletions.
4 changes: 2 additions & 2 deletions archives/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>
kingofzihua
</title>
<link rel="shortcut icon" href="https://kingofzihua.github.io/favicon.ico?v=1581407763178">
<link rel="shortcut icon" href="https://kingofzihua.github.io/favicon.ico?v=1581407950925">
<!-- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous"> -->
<link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css">
Expand All @@ -27,7 +27,7 @@
<div class="nav">
<div class="logo">
<a href="https://kingofzihua.github.io">
<img class="avatar" src="https://kingofzihua.github.io/images/avatar.png?v=1581407763178" alt="">
<img class="avatar" src="https://kingofzihua.github.io/images/avatar.png?v=1581407950925" alt="">
</a>
<div class="site-title">
<h1>
Expand Down
46 changes: 23 additions & 23 deletions atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>https://kingofzihua.github.io</id>
<title>kingofzihua</title>
<updated>2020-02-11T07:57:09.030Z</updated>
<updated>2020-02-11T08:00:00.642Z</updated>
<generator>https://github.com/jpmonette/feed</generator>
<link rel="alternate" href="https://kingofzihua.github.io"/>
<link rel="self" href="https://kingofzihua.github.io/atom.xml"/>
Expand Down Expand Up @@ -633,20 +633,20 @@ use App\Pagination\LengthAwarePaginator;
}
</code></pre>
<h3 id="bool-嵌套">Bool 嵌套</h3>
<figure data-type="image" tabindex="1"><img src="https://kingofzihua.github.io/post-images/1568255247856.png" alt=""></figure>
<figure data-type="image" tabindex="1"><img src="https://kingofzihua.github.io/post-images/1568255247856.png" alt="" loading="lazy"></figure>
<h4 id="查询语句的结构会对相关度算分产生影响">查询语句的结构,会对相关度算分产生影响</h4>
<ul>
<li>同一层级下对竞争字段,具有相同对权重</li>
<li>通过嵌套bool查询,可以改变对算分对影响</li>
</ul>
<figure data-type="image" tabindex="2"><img src="https://kingofzihua.github.io/post-images/1568255536825.png" alt=""></figure>
<figure data-type="image" tabindex="2"><img src="https://kingofzihua.github.io/post-images/1568255536825.png" alt="" loading="lazy"></figure>
<h4 id="查询语法">查询语法</h4>
<ul>
<li>子查询可以任意顺序出现</li>
<li>可以嵌套多个查询</li>
<li>如果你的bool查询中,没有must条件,should中必须至少满足一条查询</li>
</ul>
<figure data-type="image" tabindex="3"><img src="https://kingofzihua.github.io/post-images/1568254527196.jpg" alt=""></figure>
<figure data-type="image" tabindex="3"><img src="https://kingofzihua.github.io/post-images/1568254527196.jpg" alt="" loading="lazy"></figure>
<h2 id="boosting-相关性提升查询">Boosting 相关性提升查询</h2>
<ul>
<li>Boosting 是控制相关度的一种手段</li>
Expand Down Expand Up @@ -1815,7 +1815,7 @@ GET moulds/_search
<blockquote>
<p>分词器是专门处理分词的组件,分词器(analyzer)是由字符过滤器(Character Filters)、一个分解器(tokenizer)、零个或多个词元过滤器(token filters)组成。</p>
</blockquote>
<figure data-type="image" tabindex="1"><img src="https://kingofzihua.github.io/post-images/1567573386582.jpg" alt=""></figure>
<figure data-type="image" tabindex="1"><img src="https://kingofzihua.github.io/post-images/1567573386582.jpg" alt="" loading="lazy"></figure>
<h3 id="character-filters-字符过滤器">Character Filters (字符过滤器)</h3>
<pre><code>在分解器(Tokenizer)之前对文本进行预处理。处理的算法称谓字符过滤器(Character Filters)
</code></pre>
Expand Down Expand Up @@ -2139,7 +2139,7 @@ GET moulds/_search
<li>按词切分</li>
<li>小写处理</li>
</ul>
<figure data-type="image" tabindex="2"><img src="https://kingofzihua.github.io/post-images/1567574028769.jpg" alt=""></figure>
<figure data-type="image" tabindex="2"><img src="https://kingofzihua.github.io/post-images/1567574028769.jpg" alt="" loading="lazy"></figure>
<pre><code>GET _analyze
{
&quot;analyzer&quot;: &quot;standard&quot;,
Expand Down Expand Up @@ -2248,7 +2248,7 @@ GET moulds/_search
<li>按照非字母切分,非字母对都被去除</li>
<li>小写处理</li>
</ul>
<figure data-type="image" tabindex="3"><img src="https://kingofzihua.github.io/post-images/1567574087251.jpg" alt=""></figure>
<figure data-type="image" tabindex="3"><img src="https://kingofzihua.github.io/post-images/1567574087251.jpg" alt="" loading="lazy"></figure>
<pre><code>GET _analyze
{
&quot;analyzer&quot;: &quot;simple&quot;,
Expand Down Expand Up @@ -2349,7 +2349,7 @@ GET moulds/_search
<ul>
<li>按照空格切分</li>
</ul>
<figure data-type="image" tabindex="4"><img src="https://kingofzihua.github.io/post-images/1567574121683.jpg" alt=""></figure>
<figure data-type="image" tabindex="4"><img src="https://kingofzihua.github.io/post-images/1567574121683.jpg" alt="" loading="lazy"></figure>
<pre><code>GET _analyze
{
&quot;analyzer&quot;: &quot;whitespace&quot;,
Expand Down Expand Up @@ -2454,7 +2454,7 @@ GET moulds/_search
</ul>
</li>
</ul>
<figure data-type="image" tabindex="5"><img src="https://kingofzihua.github.io/post-images/1567574149862.png" alt=""></figure>
<figure data-type="image" tabindex="5"><img src="https://kingofzihua.github.io/post-images/1567574149862.png" alt="" loading="lazy"></figure>
<pre><code>GET _analyze
{
&quot;analyzer&quot;: &quot;stop&quot;,
Expand Down Expand Up @@ -2541,7 +2541,7 @@ GET moulds/_search
<ul>
<li>不分词,直接将输入当一个<code>term</code>输出</li>
</ul>
<figure data-type="image" tabindex="6"><img src="https://kingofzihua.github.io/post-images/1567574187183.jpg" alt=""></figure>
<figure data-type="image" tabindex="6"><img src="https://kingofzihua.github.io/post-images/1567574187183.jpg" alt="" loading="lazy"></figure>
<pre><code>GET _analyze
{
&quot;analyzer&quot;: &quot;keyword&quot;,
Expand All @@ -2563,7 +2563,7 @@ GET moulds/_search
</code></pre>
<p><em>没有做任何的处理,直接把结果按一个<code>term</code>输出了</em></p>
<h3 id="pattern-analyzer">Pattern Analyzer</h3>
<figure data-type="image" tabindex="7"><img src="https://kingofzihua.github.io/post-images/1567571888516.jpg" alt=""></figure>
<figure data-type="image" tabindex="7"><img src="https://kingofzihua.github.io/post-images/1567571888516.jpg" alt="" loading="lazy"></figure>
<ul>
<li>通过正则表达式进行分词</li>
<li>默认是\W+,非字符的符号进行分隔</li>
Expand Down Expand Up @@ -2823,7 +2823,7 @@ GET moulds/_search
<ul>
<li>https://github.com/elastic/elasticsearch-analysis-icu</li>
</ul>
<figure data-type="image" tabindex="8"><img src="https://kingofzihua.github.io/post-images/1567576048362.png" alt=""></figure>
<figure data-type="image" tabindex="8"><img src="https://kingofzihua.github.io/post-images/1567576048362.png" alt="" loading="lazy"></figure>
<h4 id="安装">安装</h4>
<pre><code># 需要找到你的elasticsearch-plugin命令所在位置
sudo /you-path/elasticsearch-plugin install analysis-icu
Expand Down Expand Up @@ -2881,7 +2881,7 @@ sudo /you-path/elasticsearch-plugin install https://github.com/medcl/elasticsear
</blockquote>
<!-- more -->
<h1 id="rest-api-很容易被各种语言调用">REST API - 很容易被各种语言调用</h1>
<figure data-type="image" tabindex="1"><img src="https://kingofzihua.github.io/post-images/1567409800687.jpg" alt=""></figure>
<figure data-type="image" tabindex="1"><img src="https://kingofzihua.github.io/post-images/1567409800687.jpg" alt="" loading="lazy"></figure>
<h2 id="文档的操作">文档的操作</h2>
<table>
<thead>
Expand Down Expand Up @@ -3497,7 +3497,7 @@ foo、Foo、FOO几个单词是不同的索引词。索引词(<code>term</code>
</ul>
<p><em>请注意,一个节点只能加入一个集群。此外,你还可以拥有多个独立的集群,每个集群都有起不同的集群名称。例如,在开发过程中,你可以建立开发集群库和测试集群库,分别为开发、测试服务。</em></p>
<h4 id="elasticsearch集群结构">Elasticsearch集群结构</h4>
<figure data-type="image" tabindex="1"><img src="https://kingofzihua.github.io/post-images/1567420390519.jpg" alt=""></figure>
<figure data-type="image" tabindex="1"><img src="https://kingofzihua.github.io/post-images/1567420390519.jpg" alt="" loading="lazy"></figure>
<h3 id="节点node">节点(node)</h3>
<p>一个节点是一个逻辑上独立的服务,他是集群的一部分,可以存储数据,并参与集群的索引和搜索功能。</p>
<ul>
Expand Down Expand Up @@ -3619,7 +3619,7 @@ foo、Foo、FOO几个单词是不同的索引词。索引词(<code>term</code>
</ul>
<h4 id="示例">示例</h4>
<p><strong>一个三节点的集群中,blogs索引的分片分布情况</strong><br>
<img src="https://kingofzihua.github.io/post-images/1567417393236.jpg" alt=""></p>
<img src="https://kingofzihua.github.io/post-images/1567417393236.jpg" alt="" loading="lazy"></p>
<h4 id="分片的设定">分片的设定</h4>
<p>对于生产环境中分片的设定,需要提现做好容量规划</p>
<ul>
Expand Down Expand Up @@ -3696,10 +3696,10 @@ test_index 2 r UNASSIGNED
</li>
<li>索引的名字全部小写</li>
<li>单个集群中可以定义多个你想要的索引<br>
<img src="https://kingofzihua.github.io/post-images/1567407893547.jpg" alt=""></li>
<img src="https://kingofzihua.github.io/post-images/1567407893547.jpg" alt="" loading="lazy"></li>
</ul>
<h4 id="索引的不同语意">索引的不同语意</h4>
<figure data-type="image" tabindex="2"><img src="https://kingofzihua.github.io/post-images/1567408973411.jpg" alt=""></figure>
<figure data-type="image" tabindex="2"><img src="https://kingofzihua.github.io/post-images/1567408973411.jpg" alt="" loading="lazy"></figure>
<h3 id="类型-type">类型 (type)</h3>
<blockquote>
<p>可以认为是数据库中的一个表</p>
Expand Down Expand Up @@ -3766,21 +3766,21 @@ test_index 2 r UNASSIGNED
</ul>
</li>
</ul>
<figure data-type="image" tabindex="3"><img src="https://kingofzihua.github.io/post-images/1567481358672.png" alt=""></figure>
<figure data-type="image" tabindex="3"><img src="https://kingofzihua.github.io/post-images/1567481358672.png" alt="" loading="lazy"></figure>
<h4 id="json-文档">JSON 文档</h4>
<ul>
<li>一篇文档包行列一系列的字段,类似于数据库中的一条数据</li>
<li>JSON 文档,格式灵活,不需要预先定义格式
<ul>
<li>字段类型可以指定或者是通过<code>Elasticsearch</code> 自动推算(不推荐)</li>
<li>支持数组 / 支持嵌套<br>
<img src="https://kingofzihua.github.io/post-images/1567408397372.jpg" alt=""><br>
<img src="https://kingofzihua.github.io/post-images/1567408397372.jpg" alt="" loading="lazy"><br>
<em>CSV的文件 通过 logstash转化并写入elasticsearch</em></li>
</ul>
</li>
</ul>
<h4 id="文档的元数据">文档的元数据</h4>
<figure data-type="image" tabindex="4"><img src="https://kingofzihua.github.io/post-images/1567407973203.jpg" alt=""></figure>
<figure data-type="image" tabindex="4"><img src="https://kingofzihua.github.io/post-images/1567407973203.jpg" alt="" loading="lazy"></figure>
<h3 id="映射mapping">映射(mapping)</h3>
<blockquote>
<p>可以认为是数据库中的表结构</p>
Expand Down Expand Up @@ -3941,7 +3941,7 @@ test_index 2 r UNASSIGNED
<link href="https://kingofzihua.github.io/post/tidewaysxhprof-he-xhgui-da-zao-php-fei-qin-ru-shi-jian-kong-ping-tai">
</link>
<updated>2019-08-30T08:50:24.000Z</updated>
<content type="html"><![CDATA[<figure data-type="image" tabindex="1"><img src="https://kingofzihua.github.io/post-images/1567390921096.png" alt="火焰图"></figure>
<content type="html"><![CDATA[<figure data-type="image" tabindex="1"><img src="https://kingofzihua.github.io/post-images/1567390921096.png" alt="火焰图" loading="lazy"></figure>
<h2 id="推荐阅读">推荐阅读</h2>
<ul>
<li><strong><a href="https://github.com/guanguans/guanguans.github.io/issues/8">Tideways、xhprof 和 xhgui 打造 PHP 非侵入式监控平台</a></strong></li>
Expand Down Expand Up @@ -4051,8 +4051,8 @@ $ php install.php
; http://php.net/auto-prepend-file
auto_prepend_file = &quot;/path/wwwroot/xhgui-branch/external/header.php&quot;
</code></pre>
<figure data-type="image" tabindex="2"><img src="https://kingofzihua.github.io/post-images/1567391345072.png" alt="函数监控"></figure>
<figure data-type="image" tabindex="3"><img src="https://kingofzihua.github.io/post-images/1567391356129.png" alt="调用图"></figure>
<figure data-type="image" tabindex="2"><img src="https://kingofzihua.github.io/post-images/1567391345072.png" alt="函数监控" loading="lazy"></figure>
<figure data-type="image" tabindex="3"><img src="https://kingofzihua.github.io/post-images/1567391356129.png" alt="调用图" loading="lazy"></figure>
<h2 id="参考链接">参考链接</h2>
<ul>
<li><a href="https://github.com/phacility/xhprof">https://github.com/phacility/xhprof</a></li>
Expand Down
28 changes: 14 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>
kingofzihua
</title>
<link rel="shortcut icon" href="https://kingofzihua.github.io/favicon.ico?v=1581407763178">
<link rel="shortcut icon" href="https://kingofzihua.github.io/favicon.ico?v=1581407950925">
<!-- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous"> -->
<link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css">
Expand All @@ -27,7 +27,7 @@
<div class="nav">
<div class="logo">
<a href="https://kingofzihua.github.io">
<img class="avatar" src="https://kingofzihua.github.io/images/avatar.png?v=1581407763178" alt="">
<img class="avatar" src="https://kingofzihua.github.io/images/avatar.png?v=1581407950925" alt="">
</a>
<div class="site-title">
<h1>
Expand Down Expand Up @@ -107,7 +107,7 @@ <h2 class="post-title">
<time class="post-time">2019-12-31</time>

<a href="https://kingofzihua.github.io/tag/eKiukqYwE" class="post-tag i-tag
i-tag-info">
i-tag-other_1">
#伪静态
</a>

Expand Down Expand Up @@ -198,7 +198,7 @@ <h2 class="post-title">
<time class="post-time">2019-09-12</time>

<a href="https://kingofzihua.github.io/tag/n9VRPxrjY" class="post-tag i-tag
i-tag-success">
i-tag-other_4">
#elasticsearch
</a>

Expand Down Expand Up @@ -232,12 +232,12 @@ <h2 class="post-title">
<time class="post-time">2019-09-05</time>

<a href="https://kingofzihua.github.io/tag/rxaUEiO86" class="post-tag i-tag
i-tag-other_4">
i-tag-warning">
#mapping
</a>

<a href="https://kingofzihua.github.io/tag/n9VRPxrjY" class="post-tag i-tag
i-tag-banana">
i-tag-success">
#elasticsearch
</a>

Expand Down Expand Up @@ -271,7 +271,7 @@ <h2 class="post-title">
<time class="post-time">2019-09-04</time>

<a href="https://kingofzihua.github.io/tag/n9VRPxrjY" class="post-tag i-tag
i-tag-other_2">
i-tag-error">
#elasticsearch
</a>

Expand Down Expand Up @@ -305,7 +305,7 @@ <h2 class="post-title">
<time class="post-time">2019-09-03</time>

<a href="https://kingofzihua.github.io/tag/n9VRPxrjY" class="post-tag i-tag
i-tag-other_4">
i-tag-error">
#elasticsearch
</a>

Expand Down Expand Up @@ -339,7 +339,7 @@ <h2 class="post-title">
<time class="post-time">2019-09-02</time>

<a href="https://kingofzihua.github.io/tag/n9VRPxrjY" class="post-tag i-tag
i-tag-other_3">
i-tag-error">
#elasticsearch
</a>

Expand Down Expand Up @@ -373,7 +373,7 @@ <h2 class="post-title">
<time class="post-time">2019-09-01</time>

<a href="https://kingofzihua.github.io/tag/f7PDRDRNb" class="post-tag i-tag
i-tag-error">
i-tag-warning">
#端口
</a>

Expand Down Expand Up @@ -407,12 +407,12 @@ <h2 class="post-title">
<time class="post-time">2019-08-30</time>

<a href="https://kingofzihua.github.io/tag/5u6qkCj88" class="post-tag i-tag
i-tag-info">
i-tag-other_1">
#php
</a>

<a href="https://kingofzihua.github.io/tag/aHevv4Ug4K" class="post-tag i-tag
i-tag-other_3">
i-tag-banana">
#监控
</a>

Expand Down Expand Up @@ -562,7 +562,7 @@ <h2 class="post-title">
<div class="pagination-container">


<a href="https://kingofzihua.github.io/page/2/" class="page-btn btn">下一页</a>
<a href="https://kingofzihua.github.io/page/2" class="page-btn btn">下一页</a>

</div>

Expand All @@ -575,7 +575,7 @@ <h2 class="post-title">
<!-- 个人信息 -->

<div class="id_card i-card">
<div class="id_card-avatar" style="background-image: url(https://kingofzihua.github.io/images/avatar.png?v=1581407763178)">
<div class="id_card-avatar" style="background-image: url(https://kingofzihua.github.io/images/avatar.png?v=1581407950925)">
</div>
<h1 class="id_card-title">
kingofzihua
Expand Down
Loading

0 comments on commit b47d981

Please sign in to comment.