| We suspect we need two styles of refresh:
- a global one which flushes all on SearchFactory (useful for testing).
- one which setups a "block on commit" making the changes from the current TX visible to follow up operations of the same thread.
Proposals: SearchFactory#forceVisibility() FullTextSession#onCommit().blockUntilIndexesUpdated(); or FullTextSession#onCommit().makeChangesVisible(); FullTextSession#onCommit().awaitUntilChangesAreVisible(); <- favourite so far Not expected to work on the JMS slaves. Throw an exception? |