To Know is a index was creating

I am creating indexes with java library. When I create an index I nedd to know if exists other index with the same name. In AQL I can execute show index and I find this java project https://github.com/aerospike/aql-java but I don’t know how I can use it to resolve my problem.

Somebody can help me to list all the index like aql command (show indexes) do.

Thanks.

You can use the following Info code to see the created indexes

Info.request("sindex")

It will return a ‘:’ separated list of values

ns=test:set=demo:indexname=bob:num_bins=1:bins=name:type=TEXT:sync_state=synced:state=RW;

I hope this helps

2 Likes