You can use pre_get_posts
to modify the main query, but you will need to create new queries for the other searches. Use get_query_var('s')
to get the search terms and create new WP_Query
objects to perform your search.
Without more information it is hard to provide much more detail to the answer.