-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add function to list all indexes #1646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
as a work around I build a query on top of .execute to fetch the index list:
it does its job, but it feels a bit weird to do a lot of special logic for a pretty basic task |
I tried to look at the code in order to grasp whats going on. spring-data-elasticsearch uses response classes from elasticsearch library, so there is not a response which can represent the response of I tried to map it my self but i have troubles reading the response body from RawActionResponse Any hint would be welcome, and then i could open a PR |
_all is just a special case of the get index API. We should have a new function in To get the result for this call it is necessary to use a
and the needed getter functions to retrieve the information for all the indices. This information should be used to build the Building And - as Elasticsearch 7 still does support the TransportClient - this must be added to Rest, Reactive and Transport implementations. |
Please add a function to list all indexes on the Elasticsearch host to
ReactiveElasticsearchClient.indices()
.This should do the same as running
GET /_all
on the ES host, and return a Flux of index descriptions.The text was updated successfully, but these errors were encountered: