Changing store type on the fly

Hi is it ok to close and index change it's store type say from mmapfs to niofs and then back?

Just curious.