views:

1419

answers:

2

Hi,

Am using Lucene.Net dll version 2.0.0.4 Looks like its IndexWriter class does not have methods for DeleteDocument and UpdateDocument.Am i missing something here?How do i achieve delete,update functionality in this version of dll?

Version 2.1 Lucene dll seems to have support for delete and update documents: public virtual void DeleteDocuments(Term term); public virtual void UpdateDocument(Term term, Document doc);

Following URL has the source code for verion 2.1,but i will have to download all the files one by one and then build a dll out of it. https://svn.apache.org/repos/asf/incubator/lucene.net/tags/Lucene.Net_2_1_0/

Can I download latest Lucene dll and Highlighter from some site?

Thanks.

+1  A: 

In older version of Lucene, deleting documents could only be done with an IndexReader. To update a document, simply delete the old version and add a new one.

I don't know about the dll download, sorry.

itsadok
+1  A: 

I've documented how I update Lucene.NET Documents here:
http://www.ifdefined.com/blog/post/2009/02/Full-Text-Search-in-ASPNET-using-LuceneNET.aspx

Corey Trager