Запрос match all
Самый простой запрос, который соответствует всем документам, присваивая им все _score 1.0.
GET /_search
{
"query": {
"match_all": {}
}
} _score можно изменить с помощью параметра boost:
GET /_search
{
"query": {
"match_all": { "boost" : 1.2 }
}
} Запрос match none
Это обратное match_all, которое не соответствует ни одному документу.
GET /_search
{
"query": {
"match_none": {}
}
}
© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/7.17/query-dsl-match-all-query.html