AzureSearch Injection of SearchIndexerClient
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Is your feature request related to a problem? Please describe the problem.
I am trying to create an Azure Search Configuration Job as part of the deployment, at present the **Aspire.Azure.Search.Documents** component for Aspire only supports the dependency registration of the **SearchIndexClient** and not the **SearchIndexerClient** which is required to perform some of the configuration tasks required.
### Describe the solution you'd like
I would like to use either the **SearchIndexerClient** and/or the **SearchIndexClient** from within aspire projects by using current dependency injection extension methods **AddAzureSearchClient**, **AddKeyedAzureSearchClient** or by way of new extension methods **AddAzureSearchIndexClient**, **AddKeyedAzureSearchIndexClient**, **AddAzureSearchIndexerClient**, **AddKeyedAzureSearchIndexerClient** that explicitly registers the approriate Search client. It would also be good the have the additional health check for the **SearchIndexerClient**
### Additional context
I have noticed that the **SearchIndexerClient** can be used to instantiate a **SearchIndexClient**
Contributor guide
Assessment
This issue has not been assessed yet.