Hibernate Team |
|
Joined: Sun Sep 14, 2003 3:54 am Posts: 7256 Location: Paris, France
|
First you should rarely use bulk queries like that. For example your query can efficiently be replaced by em.remove ( em.getReference(Product.class, 4) );
But if you have to use a bulk query, then Hibernate Search does not know about the change and you have to "tell it" by using the FullTextEntityManager#index / #purge etc
But again, bulk operations are useful if you really massive bulk changes to your data.
_________________ Emmanuel
|
|