Hi All,
I am having a basic doubt..
I am trying to update a lucene document field with a new value..
The below is my code.. It is not giving any errors and also it is not
updating the document with field.
Document d = searcher.doc(docId);
writer1 = new IndexWriter(csDirectory, new
IndexWriterConfig(Version.LUCENE_36,analyzer));
writer1.updateDocument(new Term(FILE_NAME_FIELD,"new1.docx"),d);
Please help me in this..
Also Suggest me if there is a better way to updateDocument without
using search()..
--
Thanks and Regards
Vignesh Srinivasan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]