Add a readOnly mode for our lucene connector.

This way the webapp can run in readOnly mode while background processes
update the index.