This example contains two reusable custom controls.
One shows in a repeat control / view, the data is dynamically refreshed while typing search text by using a partial refresh.
Note that this option will generate more traffic on the server.
The other one shows by using a redirect to another or same Xpage how you could filter the data after typing search text and pushing a search button.
The search string is added to the url itself so a full refresh must be done here. This option needs a search button but will spare traffic on your server.