update « Search « JPA Q&A





1. Hibernate HQL query does not update the Lucene Index    stackoverflow.com

I am using Hibernate 3.6.3 Final and Hibernate Search 3.4.1. I wrote an HQL delete query. The objects are deleted from the database but they are not removed from the Lucene Index ...

2. Update query gets fired while searching    forum.hibernate.org

10/11/24 14:56:48 org.hibernate.exception.SQLGrammarException: could not update: [com.netechinc.forms.TenderForm.QuotationDetailsSearchForm#645] //Class name 10/11/24 14:56:48 at org.hibernate.JDBCException.(JDBCException.java:49) 10/11/24 14:56:48 at org.hibernate.exception.SQLGrammarException.(SQLGrammarException.java:54) 10/11/24 14:56:48 at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91) 10/11/24 14:56:48 at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) 10/11/24 14:56:48 at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2573) 10/11/24 14:56:48 at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2455) 10/11/24 14:56:48 at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2755) 10/11/24 14:56:48 at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:114) 10/11/24 14:56:48 at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:268) 10/11/24 14:56:48 at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:260) 10/11/24 14:56:48 at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:180) 10/11/24 14:56:48 at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321) 10/11/24 14:56:48 at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50) ...

3. Hibernate Search updating the index unnecessarily    forum.hibernate.org

Hello I have a working integration of Hibernate Search using annotations in my project. I have a Post domain object which exposes a @DocumentId to Lucene but all other fields are normal fields and are not indexed. In a transaction, I am executing post.setViews(number) and then a session.merge() afterwards to persist. I am seeing here though is that post-commit the index ...

4. Hibernate Search Update the index at the startup    forum.hibernate.org

Hi all, Question 1: Is there anyway to update the index file when the Hibernate Search application starts. Or we have to re-index every single record in the table whenever the Hibernate Search application starts? Question 2: (Automatic indexing) Can the Java application outside the Hibernate Search trigger the Hibernate Search update the index without having to call directly the function ...