         # File lib/ferret/index.rb, line 190
    190:     def close
    191:       @dir.synchronize do
    192:         if not @open
    193:           raise(StandardError, "tried to close an already closed directory")
    194:         end
    195:         @searcher.close() if @searcher
    196:         @reader.close() if @reader
    197:         @writer.close() if @writer
    198:         @dir.close() if @close_dir
    199:
    200:         @open = false
    201:       end
    202:     end