# Get all of the documents for user in elastic enterprise search

**URL:** <https://discuss.elastic.co/t/get-all-of-the-documents-for-user-in-elastic-enterprise-search/361707>\
**Category:** Elastic Search\
**Created:** [June 19, 2024, 7:49am UTC](https://discuss.elastic.co/t/get-all-of-the-documents-for-user-in-elastic-enterprise-search/361707 "2024-06-19T07:49:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nfeekery](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nfeekery/32/117349_2.png) [@nfeekery](https://discuss.elastic.co/u/nfeekery)\
**Post date:** [June 19, 2024, 9:28am UTC](https://discuss.elastic.co/t/get-all-of-the-documents-for-user-in-elastic-enterprise-search/361707/2 "2024-06-19T09:28:39Z")

</div>

Hi @CTO_Servefast

> The only way i had some success was using `client.app.search()` using empty string for query but it seems unreliable

Can you expand on what makes it seem unreliable? The App Search search query should return all docs ordered by ID by default.

If docs are being added, deleted, updated, etc. during the search operation and that search result is paginated, there could be some inconsistencies in the results. You can resolve that by using [point in time API](https://www.elastic.co/guide/en/elasticsearch/reference/current/point-in-time-api.html), but to do this you'd need to use the [Elasticsearch JS client](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html) to send the requests to Elasticsearch instead of Enterprise Search.

---

_[View the full topic](https://discuss.elastic.co/t/get-all-of-the-documents-for-user-in-elastic-enterprise-search/361707)._
