jedis icon indicating copy to clipboard operation
jedis copied to clipboard

How to get the index list in Redisearch?

Open wxzhou-gis opened this issue 2 years ago • 3 comments

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?

wxzhou-gis avatar Apr 07 '22 14:04 wxzhou-gis

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).

sazzad16 avatar Apr 07 '22 15:04 sazzad16

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.

wxzhou-gis avatar Apr 08 '22 00:04 wxzhou-gis

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

gkorland avatar Apr 10 '22 10:04 gkorland

您好,您的来信我已经收到了,谢谢!

wxzhou-gis avatar Nov 13 '22 13:11 wxzhou-gis