Description
IndexNode currently opens the suggest directory in following way
if (definition.isSuggestEnabled()) { suggestDirectory = new OakDirectory(defnNodeState.builder(), ":suggest-data", definition, false); }
It has two issues
- It open a builder on existing node state. Instead of that it should use ReadOnlyBuilder
- The directory should be opened in read only mode