You have a few issues with your code:
You have multiple onReady() functions which might result in unpredictable behavior of the code. You should put all code that needs to run, when the page is ready, in one oReady() function, in the order that you want the code to run.
You’ve defined two onClick functions for the same #searchButton. Is the button in the Repeater, or is it on the page?
You have stated that you " set the dataset setting to show read-only and to show only 1 result". Is the dataset connected to the Repeater? I don’t see the dataset being used in your code. In addition, y ou are using a database query to set the data of the Repeater, which will conflict with the dataset action.
I recommend reading Wix Repeaters with Corvid . The Repeater API is also an excellent source of material on the Repeater including details on all the options, usage cases, and code snippets.