jedis
jedis copied to clipboard
How to get the index list in Redisearch?
FT._ List can obtain the existing index list in Redisearch. Which method can obtain similar functions in jedis? Or is there any method to judge whether the index is created?
is there any method to judge whether the index is created?
There is a FT.INFO command which is implemented in Jedis as Map<String, Object> ftInfo(String indexName)
.
Ft.info has a premise,the index must be first created with FT.CREATE. If it is not created, the direct call will report an error.
https://github.com/RediSearch/RediSearch/issues/2700#issuecomment-1091628547
FT._ List
- is currently not exposed on Jedis.
But, you can call it explicitly using executeCommand
您好,您的来信我已经收到了,谢谢!