# 3.5.2.Match All 查询

## Match ALL 查询

最简单的查询，它匹配所有文档，给它们一个\_score 1.0。

```
GET /_search
{
    "query": {
        "match_all": {}
    }
}
```

可以使用 boost 参数更改 \_score：

```
GET /_search
{
    "query": {
        "match_all": { "boost" : 1.2 }
    }
}
```

## Match None 查询

这是 match\_all 查询相反，它不匹配任何文档。

```
GET /_search
{
    "query": {
        "match_none": {}
    }
}
```


---

# 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/match-all-cha-xun.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.
