Add the necessary code and option for limiting how many times the search function can be executed over a given time window. The technique used to achieve this goal is called "Debouncing" (see https://www.telerik.com/blogs/debouncing-and-throttling-in-javascript) and the debouce time is controlled by a new option : debounceTime.
Supporting debouncing is especially useful to improve the user experience when searching over a large dataset (either with rare terms ou because the number of posts to display is large). If no debounceTime is provided a search will be triggered on each keystroke (the behavior before this option was introduced).
Add the necessary code and option for limiting how many times the search function can be executed over a given time window. The technique used to achieve this goal is called "Debouncing" (see https://www.telerik.com/blogs/debouncing-and-throttling-in-javascript) and the debouce time is controlled by a new option : debounceTime.
Supporting debouncing is especially useful to improve the user experience when searching over a large dataset (either with rare terms ou because the number of posts to display is large). If no debounceTime is provided a search will be triggered on each keystroke (the behavior before this option was introduced).