Question about the refresh parameter

If I make 2 requests to es in sequence, which is firing the second request after the first request is returned.

My question is that If I set the refresh parameter of the second request to TRUE. would the change of the first request be seen by the following search immediately ?

Welcome.

Answer is yes.

You need to set the refresh on the first request, not the second.