How to create and use sindex in aql for mapbins

Can any one help me out with the sindex for map bin in a set . how to set index on a specific key

Creating the sindex - I will discuss two ways: One via the Java client, other via asadm tool. First Java client version:

Here, I want to do string equality on the value associated with a nested map key:

The execution helper function is:

If you are looking to index the MAP KEY ( and search for the key, not the value associated with it), here is an example:

Same case, but Keys in integer range …

You can also create SIs on CDTs with asadm tool also - command syntax with a CDT example is listed here: Aerospike Admin Live Cluster Mode Commands | Aerospike Documentation

Hope that helps!