The current RiakIndex annotation requires the name to be static like "email" here:
@RiakIndex(name="email")
public Set<String> emailIndx;
We need a way to annotate dynamic indices like:
@RiakIndex
public Map<String, String> references;
Where each key in the Map is a 2i key to index, and each value is the corresponding 2i value.
The old RiakObject based API can do this.
Is this something basho can implement or would you be willing to merge a PR on it?