added development flag to stop documents being indexed