Try this: FullTextSession fullTextSession = Search.createFullTextSession(session); for (JobDescription jobDescription : jobDescriptions) { fullTextSession.save(jobDescription); } ^ |
.index causes a reindex not a save John G. -----Original Message----- From: oyesiji [mailto:[EMAIL PROTECTED] Sent: Friday, May 02, 2008 5:24 PM To: java-user@lucene.apache.org Subject: Hibernate search (Problem adding new Record) I am using Hibernate Search in my Application, the first time i attempt to index records from the database it works and the second time i attempt to add records i notice that it does not work FullTextSession fullTextSession = Search.createFullTextSession(session); for (JobDescription jobDescription : jobDescriptions) { fullTextSession.index(jobDescription); } Any suggestion is welcome -- View this message in context: http://www.nabble.com/Hibernate-search-%28Problem-adding-new-Record%29-tp170 29563p17029563.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]