Sanne Grinovero commented on an issue
Hibernate Search / Improvement HSEARCH-1270
Clear the pending indexing tasks at Session.clear()
I have a use-case with a nested transaction in a loop.

When the nested transaction is committed, I manually flush and clear the Hibernate-Session, because otherwise, the program would run into an {{OutOfMemoryException}}, because it loads to many objects into the Hibernate session.

Sometimes, the nested transaction is rolled back, to cancel some wor...