# Issue while searching documents

**URL:** <https://discuss.elastic.co/t/issue-while-searching-documents/18762>\
**Category:** Elasticsearch\
**Created:** [July 21, 2014, 11:32am UTC](https://discuss.elastic.co/t/issue-while-searching-documents/18762 "2014-07-21T11:32:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sudeep](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@Sudeep](https://discuss.elastic.co/u/Sudeep)\
**Post date:** [July 21, 2014, 11:32am UTC](https://discuss.elastic.co/t/issue-while-searching-documents/18762/1 "2014-07-21T11:32:23Z")

</div>

Hello,  
I have application, where we are uploading files of about 10 MB size;  
The file contents are saved in the source of the index

The elasticsearch works fine, but i am facing memory issue while trying to search documents.  
Elastic search loads the source for all the searched documents because of which i am facing memory issues.

What can be done reduce/improve memory usage while searching documents, or is there any way by which we can disable the source while searching and get the source only when required.

Thanks in Advance.

---

<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:14am UTC](https://discuss.elastic.co/t/issue-while-searching-documents/18762/2 "2017-07-06T01:14:34Z")

</div>


