BAZYNGO-851: check if the index reader needs to be refreshed before
running each query. This is not the most optimal solution, issue
BAZYNGO-874 added to track it.