lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Griffin" <jgrif...@thebluezone.net>
Subject RE: Hibernate search (Problem adding new Record)
Date Sat, 03 May 2008 03:22:49 GMT
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:oyesiji@gmail.com] 
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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message