# Srping data elasticsearch document count info using built in reactive client

**URL:** https://discuss.elastic.co/t/srping-data-elasticsearch-document-count-info-using-built-in-reactive-client/343148
**Category:** Elasticsearch
**Created:** [September 15, 2023, 2:50pm UTC](https://discuss.elastic.co/t/srping-data-elasticsearch-document-count-info-using-built-in-reactive-client/343148 "2023-09-15T14:50:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![D1sturbance](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/d1sturbance/32/98965_2.png) [@D1sturbance](https://discuss.elastic.co/u/D1sturbance)
#### Post date: [September 15, 2023, 2:50pm UTC](https://discuss.elastic.co/t/srping-data-elasticsearch-document-count-info-using-built-in-reactive-client/343148/1 "2023-09-15T14:50:57Z")

</div>

My problem:

I am trying to get indices information:

```auto
IndexName
IndexCreationDate
IndexAlias
IndexDocumentCount
IndexSize

```

I am able to get some of that information via `GetIndexResponse` mentioned below. Which holds alias, mapping and setting objects. However none of them have `IndexDocumentCount` and `IndexSize`. How to get that info using `ReactiveElasticSearchClient`?

I know there is a curl call which holds everything I need, but I thought there are posibilities using spring boot elastic built in java objects?

```auto
{{elastic-search-url}}/_cat/indices?v

```

I am using:

```auto
ELK : 7.17
Spring boot: spring-data-elasticsearch 5.1.3

```

```auto
ReactiveElasticsearchIndicesClient indices = reactiveElasticsearchClient.indices();

Mono<GetIndexResponse> getIndexResponseMono = indices.get(new GetIndexRequest.Builder().index("*").build());
GetIndexResponse block = getIndexResponseMono.block();

```

```auto

```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [October 13, 2023, 2:51pm UTC](https://discuss.elastic.co/t/srping-data-elasticsearch-document-count-info-using-built-in-reactive-client/343148/2 "2023-10-13T14:51:49Z")

</div>

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