How To Delete a Document using indexWriter in LuceneNet
问题 I have this method that I invoke in my controller that have to delete a specific Document. I read in some articles that the best way to delete a Document is using a IndexWriter. But I can't make it work. This is my code My Index: var article1 = new Document(); article1.Add(new Field("Id", "1", Field.Store.YES, Field.Index.ANALYZED)); article1.Add(new Field("Author", "Author", Field.Store.YES, Field.Index.ANALYZED)); article1.Add(new Field("Title", "Title", Field.Store.YES, Field.Index