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.