How do print the query which is built using search api I have created a view using search api now i just want to print my query.But when i used hook_views_pre_execute(){
   dpq($view->build_info['query']);
}
it does not show my query.
Enable Views query preview in Views Settings (admin/structure/views/settings) by checking the box "Show SQL query".

Then you will be able to see the query created by your view while you constructing it.