> For the complete documentation index, see [llms.txt](https://xiaoxiami.gitbook.io/elasticsearch/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xiaoxiami.gitbook.io/elasticsearch/ji-chu/35query-dsldslfang-shi-cha-8be229/quan-wen-sou-7d2228-full-text-search.md).

# 3.5.3.全文搜索(Full Text Search)

高级别的全文搜索通常用于在全文字段（例如：一封邮件的正文）上进行全文搜索。它们了解如何分析查询的字段，并在执行之前将每个字段的分析器（或搜索分析器）应用于查询字符串。

这样的查询有以下这些：

* 匹配查询（[match query](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/query-dsl-match-query.html)）

用于执行全文查询的标准查询，包括模糊匹配和词组或邻近程度的查询

* 短语匹配查询（[match\_phrase query](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/query-dsl-match-query-phrase.html)）

与匹配查询类似，但是是用于更加精确的匹配相似的词组或单词。

* 短语前缀匹配查询（[match\_phrase\_prefix query](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/query-dsl-match-query-phrase-prefix.html)）

这是一种弱类型的查询，类似短语匹配查询，但是它对最终要查询的单词的前缀进行模糊匹配的查询

* 多字段查询（[multi\_match query](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/query-dsl-multi-match-query.html)）

可以用来对多个字段的版本进行匹配查询

* 常用术语查询（[common\_terms quer](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/query-dsl-common-terms-query.html)y）

可以对一些比较专业的偏门词语进行的更加专业的查询

* 查询语句查询（[query\_string query](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/query-dsl-query-string-query.html)）

与lucene[查询语句的语法](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/query-dsl-query-string-query.html#query-string-syntax)结合的更加紧密的一种查询，允许你在一个查询语句中使用多个 特殊条件关键字（如：AND|OR|NOT ）对多个字段进行查询，当然这种查询仅限专家用户去使用。

* 简单查询语句（[simple\_query\_string](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/query-dsl-simple-query-string-query.html)）

是一种适合直接暴露给用户的简单的且具有非常完善的查询语法的查询语句
