From 57a26523a0ffa760675ee4c60bc1ec326a971974 Mon Sep 17 00:00:00 2001 From: yanglbme Date: Wed, 27 Feb 2019 14:29:59 +0800 Subject: [PATCH] docs: update es-write-query-search.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 倒排索引的一些补充说明 --- docs/high-concurrency/es-write-query-search.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/high-concurrency/es-write-query-search.md b/docs/high-concurrency/es-write-query-search.md index 95daecf..e1d9068 100644 --- a/docs/high-concurrency/es-write-query-search.md +++ b/docs/high-concurrency/es-write-query-search.md @@ -117,3 +117,8 @@ buffer 每次 refresh 一次,就会产生一个 `segment file`,所以默认 另外,实用的倒排索引还可以记录更多的信息,比如文档频率信息,表示在文档集合中有多少个文档包含某个单词。 那么,有了倒排索引,搜索引擎可以很方便地响应用户的查询。比如用户输入查询 `Facebook`,搜索系统查找倒排索引,从中读出包含这个单词的文档,这些文档就是提供给用户的搜索结果。 + +要注意倒排索引的两个重要细节: + +- 倒排索引中的所有词项对应一个或多个文档; +- 倒排索引中的词项**根据字典顺序升序排列**。 \ No newline at end of file