You can perform searches in code or provide a search dialog with various options to your user.
For more information, refer to Customizing User Searching of Data.