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.
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:
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.