Fix #17: add a timeout and trigger the search event when the text has changed to improve the search.