Searching Custom post types

Hello. I will be creating a custom post type called books.
The custom post type will have books, book genre, boot author and more.

Is there a way i can create a search function to search lets say, book authors?