Elasticsearch docs GET vs POST question

This docs page says

The difference here is that instead of passing q=* in the URI, we POST a JSON-style query request body to the _search API. We’ll discuss this JSON query in the next section.

below this example:

GET /bank/_search
{
"query": { "match_all": {} },
"sort": [
{ "account_number": "asc" }
]
}

I'm confused about this though. This example is using the GET HTTP method, but the explanation says it is POSTing the JSON-style query. Is this a typo, or am I misunderstanding something?

Thank you

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.