If you are familiar with views this can be done with the following steps.
We have a contributed module for apache solr views, by installing this module you can change the views module to apache solr views i.e you can route the queries from database queries to apache solr.
Working example :
Download and install the apache solr views module.
Once the module is installed the following steps is equivalent to creating a normal view with an exposed filters.
Create a new view I have named book search (I have created a normal menu for the book search and added in the views path configuration i.e : " Path: /apachesolrfilters ", you can create a stand alone page or add it to any existing blocks), add fields and filters,
Fields : I have added content title, body & content type
Filters: I have added Content: Published (Yes), Content: Type (exposed) & Content: Title (exposed)
Configure the filter content type to show only the book types book1 & book2.
Save the view and clear the cache.