In Elasticsearch client for .NET v8.x, how to check if SearchRequest object contains an index to target?

When creating a SearchRequest object, there's an option to provide an index name. However, it is optional, and if not provided, a default index is taken, etc.

In my code, I need to be absolutely sure the object is created with index name. How to I check this? There's no property for that, as far as I can see.

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