Allow disabling of distributed indices. Closes #744.