"query": { "match_all": {} } shows total:1000 but on console shows only 5 documents

Question 1: why can't I see all 1000 documents in my response pane on the right.

{

"took": 5,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 1000,
"max_score": 1,
"hits": [
{
"_index": "account",
"_type": "account",
"_id": "25",
"_score": 1,
"_source": {
"account_number": 25,
"balance": 40540
}
},

Thank You

Hi,

It's the default limit set by Elasticsearch . You can change by appending ?size=100 to the URL.

Cheers
Rashmi

1 Like

Rashmi,

Thank You so much. I know I am asking all basic questions. But as I continue to learn I will get hang of it.

Questions are all good..am sure you will start loving it soon too! Good Luck!

Cheers
Rashmi

Very kind of you in taking time to reply all sorts of questions.

Kind regards

Rashimi

Where can I find "?size" in the documentation on elastic site?

I want to get the list of all endpoints etc from the documentation.

Thank you

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