I'm using Hibernate Search 3.0.0Beta4 with matching versions of Hibernate Annotations and EntityManager, with Glassfish v2rc6.
In my application I do a bulk update via EJB 3.0 JPA, updating a table whose objects are indexed by Hibernate Search. When I to a Hibernate Search query for the updated objects, I get the pre-updated values. I use @Field(index = org.hibernate.search.annotations.Index.UN_TOKENIZED, store = Store.YES) to store these values in the full text index.
I assume that this is correct operation for Hibernate Search (although I hadn't considered this beforehand). I just wanted someone who knows this well to confirm that there is indeed no way to get Hibernate Search to index changes to objects when doing a bulk update, (i.e. UPDATE User u SET u.firstName = "jo")
If there is some way to do this, it will save me some extra work. Much appreciate the guidance.
Cheers,
_________________ Rick Horowitz
---------
Please remember to rate...
|