[dovecot-cvs] dovecot/src/plugins/fts-lucene lucene-wrapper.cc, 1.8, 1.9

tss at dovecot.org tss at dovecot.org
Thu Mar 15 23:46:28 EET 2007


Update of /var/lib/cvs/dovecot/src/plugins/fts-lucene
In directory talvi:/tmp/cvs-serv29388

Modified Files:
	lucene-wrapper.cc 
Log Message:
Don't call addDocument() after each block.



Index: lucene-wrapper.cc
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/fts-lucene/lucene-wrapper.cc,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- lucene-wrapper.cc	20 Dec 2006 14:46:28 -0000	1.8
+++ lucene-wrapper.cc	15 Mar 2007 21:46:26 -0000	1.9
@@ -309,10 +309,7 @@
 		index->doc->add(*Field::Text(_T("box"), index->tmailbox_name));
 	}
 
-	/* note that each addDocument() call adds a new document with a new
-	   internal ID to the database. */
 	index->doc->add(*Field::Text(_T("contents"), dest));
-	index->writer->addDocument(index->doc);
 	return 0;
 }
 



More information about the dovecot-cvs mailing list