Chetan Mehrotra created OAK-4613:
------------------------------------

             Summary: Suggest directory should be opened in read only mode
                 Key: OAK-4613
                 URL: https://issues.apache.org/jira/browse/OAK-4613
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: lucene
            Reporter: Chetan Mehrotra
            Assignee: Chetan Mehrotra
            Priority: Minor
             Fix For: 1.6


{{IndexNode}} currently opens the suggest directory in following way 

{code}
 if (definition.isSuggestEnabled()) {
      suggestDirectory = new OakDirectory(defnNodeState.builder(), 
":suggest-data", definition, false);
}
{code}

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to