         # File lib/ferret/index.rb, line 205
    205:     def close
    206:       @dir.synchronize do
    207:         if not @open
    208:           raise(StandardError, "tried to close an already closed directory")
    209:         end
    210:         @searcher.close() if @searcher
    211:         @reader.close() if @reader
    212:         @writer.close() if @writer
    213:         @dir.close() if @close_dir
    214:
    215:         @open = false
    216:       end
    217:     end