I am using Algolia search on my website with instantsearch js api.
I am struggling with optimising algolia search queries.
As I have limited operations Hit count for a month. I saw on each page load making 2 hit.
Instead I want to use hit only when user click on the search Textbox.
I tried to put my entire algolia search initialisation code on textbox click function but it is not working.
can anyone have any idea how to optimise algolia queries.