spring-redisearch icon indicating copy to clipboard operation
spring-redisearch copied to clipboard

Sentinel configuration not implements?

Open nemodeveloper opened this issue 5 years ago • 2 comments

Hello im Aleksey Im start using this library and not found how it configure sentinel connection with LettuSearch ?

From your configuration

@Bean(destroyMethod = "shutdown") RediSearchClient client(ClientResources clientResources) { RedisURI redisURI = RedisURI.create(redisProperties.getHost(), redisProperties.getPort()); if (redisProperties.getPassword() != null) { redisURI.setPassword(redisProperties.getPassword()); } Duration timeout = redisProperties.getTimeout(); if (timeout != null) { redisURI.setTimeout(timeout); } return RediSearchClient.create(clientResources, redisURI); }

Its work only with standalone configuration or im not understand something?) How i can connect this?

Also im using spring-boot-starter-data-redis And im need configure RediSearchClient for send query to RediSearch My RedisProperties can be different one moment its standalone and another sentinel

nemodeveloper avatar Apr 06 '20 10:04 nemodeveloper

Sorry I missed this issue. Sentinel support was added to LettuSearch 2.4.2. Can you check this thread and see if it works for you?

jruaux avatar Oct 23 '20 19:10 jruaux

Sentinel configuration is not working with lettuSearch 2.4.4 .

Ananda2126 avatar Nov 25 '20 14:11 Ananda2126