2
votes

In Azure search, if we have multiple indexes created, the search API seems to be directed to a given index only.

var searchClient = new SearchServiceClient(_config.ServiceName, new SearchCredentials(_config.ApiKey))
var indexClient = searchClient.Indexes.GetClient(indexName)
indexClient.Documents.Search(queryString)

Is there anything like

searchClient.Search(...)

which could search all my indexes in that search service?

Thanks

1

1 Answers

2
votes

Unfortunately querying multiple indexes with one query is not supported. Please vote for this capability on our UserVoice page to help us prioritize future work: https://feedback.azure.com/forums/263029-azure-search/suggestions/16700506-search-multiple-indexes-at-once