How to fetch data from elasticsearch without using id

I am using java REST client api to fetch data from elasticsearch. Here i am fetching data based on id ie, "twitter/tweet/1", but i want to retrieve all the records of that topic/endpoint. is there any way to get it?

Run a search query.
But use the scroll feature if you want to retrieve all docs.

1 Like

Hi David pilato,

Thank you for responding.i am sending a GET request and getting data based on id using REST Client. following is my request url:

GET http://search-delivery-fleet-huzzphcdwqwjudhrutrstpwgbi.ap-southeast-1.es.amazonaws.com/truck2/truck2/d8e14a7d-5745-4538-8cb0-5cf312122688

can you please provide documentation link for running search query and using scroll feature.

Hi David,

https://www.elastic.co/guide/en/elasticsearch/reference/current/_introducing_the_query_language.html

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
.

There are many supporting examples just goto documentation.

Regards

Mohan. S

Hi srikanth

https://www.elastic.co/guide/en/elasticsearch/reference/
current/_introducing_the_query_language.html

https://www.elastic.co/guide/en/elasticsearch/reference/
current/query-dsl.html.

There are many supporting examples just goto documentation.

Regards

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