Are the custom fields searchable?

Where in the code do you specify which fields to search?