# 3.5.4.Term级别查询(Term level queries)

虽然全文查询将在执行之前分析查询字符串，但是项级别查询对存储在反向索引中的确切项进行操作。

这些查询通常用于结构化数据，如**数字**、**日期**和**枚举**，而不是全文字段。或者，在分析过程之前，它允许你绘制低级查询。

这样的查询有以下这些：

* \_ Term \_Query（项查询）

查询包含在指定字段中指定的确切值的文档。

* \_Terms \_Query（多项查询）

查询包含任意一个在指定字段中指定的多个确切值的文档。

* R\_ange \_Query（范围查询）

查询指定字段包含指定范围内的值（**日期**，**数字**或**字符串**）的文档。

* \_ Exists \_Query（非空值查询）

查询指定的字段包含任何非空值的文档。

* Prefix Query（前缀查询）

查找指定字段包含以指定的精确前缀开头的值的文档。

* *Wildcard* Query（通配符查询）

查询指定字段包含与指定模式匹配的值的文档，其中该模式支持**单字符通配符（？）**&#x548C;**多字符通配符（\*）**

* *Regexp* Query（正则表达式查询）

查询指定的字段包含与指定的正则表达式匹配的值的文档。

* *Fuzzy* Query（模糊查询）

查询指定字段包含与指定术语模糊相似的术语的文档。模糊性测量为1或2的 **Levenshtein**。

* *Type* Query（类型查询）

查询指定类型的文档。

* *Ids Query*（**ID查询**）

查询具有指定类型和 **ID** 的文档。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xiaoxiami.gitbook.io/elasticsearch/ji-chu/35query-dsldslfang-shi-cha-8be229/354zhu-yu-ji-bie-cha-8be228-term-level-queries.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
