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