# Hit.getSource() returning only meta and not doc

**URL:** <https://discuss.elastic.co/t/hit-getsource-returning-only-meta-and-not-doc/17315>\
**Category:** Elasticsearch\
**Created:** [May 2, 2014, 9:16am UTC](https://discuss.elastic.co/t/hit-getsource-returning-only-meta-and-not-doc/17315 "2014-05-02T09:16:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaurav\_j0102](https://avatars.discourse-cdn.com/v4/letter/g/5fc32e/32.png) [@gaurav\_j0102](https://discuss.elastic.co/u/gaurav_j0102)\
**Post date:** [May 2, 2014, 9:16am UTC](https://discuss.elastic.co/t/hit-getsource-returning-only-meta-and-not-doc/17315/1 "2014-05-02T09:16:55Z")

</div>

Hello,

I am using elastic search 1.1.0 and I am facing issue that when I do hit.getSource() it returns only meta and not document associated with it.  
Could you please tell me why I do not get document?  
To add more even in Elastic search head plugin the search result in UI on specific index does not display document. It only displays meta like {meta={id=2, rev=7-0007035905ffb3aa0000000000000000, flags=0, expiration=0}}

Please tell me how can I get complete document as well.

---

<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:** [July 6, 2017, 1:32am UTC](https://discuss.elastic.co/t/hit-getsource-returning-only-meta-and-not-doc/17315/2 "2017-07-06T01:32:11Z")

</div>


