# Elasticsearch (NEST client) - How to search across multiple indices using OIS

**URL:** <https://discuss.elastic.co/t/elasticsearch-nest-client-how-to-search-across-multiple-indices-using-ois/68728>\
**Category:** Elasticsearch\
**Created:** [December 12, 2016, 3:00pm UTC](https://discuss.elastic.co/t/elasticsearch-nest-client-how-to-search-across-multiple-indices-using-ois/68728 "2016-12-12T15:00:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JagjitSingh1](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@JagjitSingh1](https://discuss.elastic.co/u/JagjitSingh1)\
**Post date:** [December 12, 2016, 3:00pm UTC](https://discuss.elastic.co/t/elasticsearch-nest-client-how-to-search-across-multiple-indices-using-ois/68728/1 "2016-12-12T15:00:19Z")

</div>

I need to search across multiple indices using OIS(Object Initializer Syntax). I have seen examples of executing search across multiple indices with Fluent DSL, but I still do not know how to execute an equivalent search with OIS.

Here is my OIS search(Only searching against one index) :

```
    var searchResult =
        await _client.LowLevel.SearchAsync<string>(ApplicationsIndexName, "application", new SearchRequest()
        {

            From = (query.PageSize * query.PageNumber) - query.PageSize,
            Size = query.PageSize,
            Query = GetQuery(query), 
            Aggregations = GetAggregations()
        });

```

Which modifications can be done, so I can search across multiple indices?

Same question can be found at Stackoverflow : [http://stackoverflow.com/questions/41103600/elasticsearch-nest-client-how-to-search-across-multiple-indices-using-ois](http://stackoverflow.com/questions/41103600/elasticsearch-nest-client-how-to-search-across-multiple-indices-using-ois)

---

<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 9, 2017, 3:00pm UTC](https://discuss.elastic.co/t/elasticsearch-nest-client-how-to-search-across-multiple-indices-using-ois/68728/2 "2017-01-09T15:00:19Z")

</div>

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