private void AddDoc(System.String content) { IndexWriter writer = new IndexWriter(dir, new WhitespaceAnalyzer(), false); InsertDoc(writer, content); writer.Close(); }