Allow to set index type to add better STI support