You can create standard indexes or unique indexes by accessing the adapter directly. I show code for how to do this here:
There are other types of indexes you are not able to create as @Moumouls pointed out, for those, I typically run a script to add them to the DB directly.