WebDevStudios / wp-search-with-algolia

Improve search on your site. Autocomplete is included, along with full control over look, feel and relevance.
https://wordpress.org/plugins/wp-search-with-algolia/
146 stars 55 forks source link

Feature/wpce 330 algolia autocomplete debounce #433

Open daveromsey opened 1 month ago

daveromsey commented 1 month ago

Closes https://webdevstudios.atlassian.net/browse/WPCE-330

image

Here's a plugin to test overriding the debounce timeout value for the searchable_posts index.

<?php
/**
 * Plugin Name:       Algolia Test Site Functions
 * Plugin URI:
 * Description:
 * Version:           1.0.0
 */

namespace AlgoliaTestFunctions;

add_filter( 'algolia_autocomplete_debounce_wp_searchable_posts', __NAMESPACE__ . '\searchable_posts_index_debounce' );
function searchable_posts_index_debounce() {
    return 5000;
}