These is an issue with usage of io.redisearch.client.Client:
Why client object is limited with usage of only one indexName?
What if you need to run asynchronous searches across multiple indexes (using searchBatch)? Or just use that object to run multiple queries for difeerent indexes without a need to create multiple objects and establish multiple connections to server.
indexName should be moved from Client object to each method parameters like createIndex and to the Query object.
These is an issue with usage of io.redisearch.client.Client: Why client object is limited with usage of only one indexName? What if you need to run asynchronous searches across multiple indexes (using searchBatch)? Or just use that object to run multiple queries for difeerent indexes without a need to create multiple objects and establish multiple connections to server. indexName should be moved from Client object to each method parameters like createIndex and to the Query object.