Fix EZP-22854: updatesearchindex not committing at each iteration.
Merge pull request #962 from joaoinacio/EZP-22854_updatesearchindex_commit

Fix EZP-22854: updatesearchindex not committing at each iteration.