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

# 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": {}
    }
}
```
