# NEST - Using client.Get to find a document across all indices

**URL:** <https://discuss.elastic.co/t/nest-using-client-get-to-find-a-document-across-all-indices/213928>\
**Category:** Elasticsearch\
**Created:** [January 6, 2020, 5:30pm UTC](https://discuss.elastic.co/t/nest-using-client-get-to-find-a-document-across-all-indices/213928 "2020-01-06T17:30:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xolab](https://avatars.discourse-cdn.com/v4/letter/x/8baadc/32.png) [@xolab](https://discuss.elastic.co/u/xolab)\
**Post date:** [January 6, 2020, 5:30pm UTC](https://discuss.elastic.co/t/nest-using-client-get-to-find-a-document-across-all-indices/213928/1 "2020-01-06T17:30:38Z")

</div>

Hello - using NEST v6.4.2 I need to fire off a client.Get across all indices. I cannot figure out how to use the Get API specifically to do this. My code looks as follows

```auto
   var client = //initialize a ElasticClient here
   // throws error as "" is an invalid index name
   var doc = client.Get<dynamic>(new GetRequest("", "_all", id));

```

For the index name I have also tried using `Indices.All`, `Indices.AllIndices`, `"*"` etc and nothing works.

Is it possible to use the Get /new GetRequest API to search across all indicies?

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:** [February 3, 2020, 5:30pm UTC](https://discuss.elastic.co/t/nest-using-client-get-to-find-a-document-across-all-indices/213928/2 "2020-02-03T17:30:43Z")

</div>

Closed on February 3, 2020, 5:30pm UTC

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