# Empty \_source load

**URL:** <https://discuss.elastic.co/t/empty-source-load/210548>\
**Category:** Elasticsearch\
**Created:** [December 4, 2019, 2:23pm UTC](https://discuss.elastic.co/t/empty-source-load/210548 "2019-12-04T14:23:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmozhi](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@mmozhi](https://discuss.elastic.co/u/mmozhi)\
**Post date:** [December 4, 2019, 2:23pm UTC](https://discuss.elastic.co/t/empty-source-load/210548/1 "2019-12-04T14:23:45Z")

</div>

Why elasticsearch is allowing to load a null document (means empty \_source)?

{  
"\_index" : "null\_index",  
"\_type" : "\_doc",  
"\_id" : "1",  
"\_score" : 1.0,  
"\_source" : { }  
}

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 6, 2019, 12:19pm UTC](https://discuss.elastic.co/t/empty-source-load/210548/2 "2019-12-06T12:19:49Z")

</div>

It is returning, what has been indexed previously, there are no sanity checks for this. It also means, there will be no real way to query for this document.

---

<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:** [January 3, 2020, 12:19pm UTC](https://discuss.elastic.co/t/empty-source-load/210548/3 "2020-01-03T12:19:53Z")

</div>

Closed on January 3, 2020, 12:19pm UTC

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