HS 6 index update problem

ok got your point about entity manager, however working with spring data jpa and in here we are not suggested to manually do anything in ‘EntityManager’ rather we are working with repositories always.
can u please suggest in this case how we will get the same ‘EntityManager’ which jpa is using to perform the action
here is mine configuration