Hello!
Thanks for the reply.
I have modified the file and it works with instant search on search pages.
Is it possible to do something like this on autocomplete also? I would like the autocomplete function to work with the minimum character length also to avoid high usage of search requests since this is where the peak happens.
For example when a user wants to search for the word “ketchup” i want the autocomplete to function after he types “ket” and not on “k” or “ke”.
I **think** this may work, but I haven’t tried it out firsthand.
Googling has said you could add something like minLength: 3 to the config section highlighted at https://github.com/WebDevStudios/wp-search-with-algolia/blob/main/templates/autocomplete.php#L177-L184 in the autocomplete.php file. Customized the same way as the instantsearch.
Noted that you’ll want to pass it as an integer, not a string, based on one of the threads turned up in results, so not minLength: '3' etc.