Hi,
Quote:
1) only invoke indexing after inserts/updates have committed, because a DB rollback can make index out of sync.
This is not true, Search does this automatically, you don't have to worry.
Emmanuel was probably explaining what the problem would be if you weren't using Hibernate Search.
Quote:
having a batch or JMS queue code that synchronizes the database data and the index.
JMS is used only if you would like to enable indexing on a dedicated server; the docs explain how to setup this configuration.
the batch code is what is explained if you follow Hardy's link.
so it is Hibernate Search's purpose to keep them in sync,
you should need the batch indexing only for disaster recovering or Application upgrades, or if you disable Search's normal behavior.