Lauren69
(blewett)
May 8, 2019, 5:57am
1
I have a small database in Elasticsearch and for testing purposes would like to pull all records back. I am attempting to use a URL of the form...
http://localhost:9200/foo/_search?pretty=true&q={'matchAll':{''}}
Can someone give me the URL you would use to accomplish this, please feedback ?
johnrabi
(john rabindranath)
May 8, 2019, 6:00am
2
hi @Lauren69 ,
can you run this query for getting all the documents in elasticsearch
URI search:
===========
http://localhost:9200/foo/_search?size=5&q=*:*
OR
curl -X GET "localhost:9200/foo/_search" -H 'Content-Type: application/json' -d'
{
"query": {
"match_all": {}
}
}
'
Ref: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-all-query.html
dadoonet
(David Pilato)
May 8, 2019, 7:19am
3
http://localhost:9200/foo/_search?size=10000
1 Like
system
(system)
Closed
June 5, 2019, 7:19am
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.