# Same space usage when disabling storing the source document

**URL:** https://discuss.elastic.co/t/same-space-usage-when-disabling-storing-the-source-document/358451
**Category:** Elasticsearch
**Created:** [April 29, 2024, 10:44pm UTC](https://discuss.elastic.co/t/same-space-usage-when-disabling-storing-the-source-document/358451 "2024-04-29T22:44:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ahmedasadi](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@ahmedasadi](https://discuss.elastic.co/u/ahmedasadi)
#### Post date: [April 29, 2024, 10:44pm UTC](https://discuss.elastic.co/t/same-space-usage-when-disabling-storing-the-source-document/358451/1 "2024-04-29T22:44:13Z")

</div>

Hi,

I've ingested 120GB of data into an elasticsearch index, and ~115GB of that data is used for storing the source document. Considering I don't need the source document and I only need the IDs of the documents that match an ES query, I tried disabling storing the source document. However, the space usage didn't go down, apparently due to an ES feature called soft delete:

[Indices with "\_source.enabled: false" same size as indices with "\_source.enabled: true" · Issue #41628 · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/issues/41628))

A few questions:

1. I bulk-ingested into a new index with no delete operations. Why are the source documents still being retained?
2. What are the implications of disabling soft delete?

Thanks,  
Ahmed

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [April 30, 2024, 2:14am UTC](https://discuss.elastic.co/t/same-space-usage-when-disabling-storing-the-source-document/358451/2 "2024-04-30T02:14:55Z")

</div>

> [@ahmedasadi](#):
>
> I've ingested 120GB of data into an elasticsearch index, and ~115GB of that data is used for storing the source document.

This seems weird, how did you got to those numbers? Can you share how?

> [@ahmedasadi](#):
>
> Considering I don't need the source document and I only need the IDs of the documents that match an ES query, I tried disabling storing the source document.

Quick question, do you use discover in Kibana to see your data? If you use it you cannot disable the `_source` field, it is required by DIscover.

---

<div class="post-metadata">

### Author: ![ahmedasadi](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@ahmedasadi](https://discuss.elastic.co/u/ahmedasadi)
#### Post date: [April 30, 2024, 3:20am UTC](https://discuss.elastic.co/t/same-space-usage-when-disabling-storing-the-source-document/358451/3 "2024-04-30T03:20:33Z")

</div>

Hey Leandro,

I appreciate the response! I'm using the analyze disk usage API to determine the space used by storing the source document:

[Analyze index disk usage API | Elasticsearch Guide [8.13] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-disk-usage.html)

I don't use Kibana -- Elasticsearch only.
