Dataset Query for 3000 Items

@mikemoynihan99
Hi, Has anyone been able to run this code?. i’m trying to get this thing work for more than a 2 days.
I have a form with more than 3K items and i’m trying to add this code in order to get search box and let the user type what is looking for.
I have an input text “input1” and dropdown menu “dropdown1”.
should i put this code under input1 “keypress” event?.
or should it put it inside the function “when page is ready”?.
Is there a need to connect the input1 field to any dataset?

Thank you!