Customizing Search File Attachments result page
Finally I ended up with some advanced search modules, Which made the search so much better. I used Apache solr and Apache solr attachments modules. This gave me ability to make my search results in a customized way via hooks. I use hook_apachesolr_process_results() to change my results. 

First I add a extra field to the file type entities in the solr index, which contain the node title. 

/**
 * Implements hook_apachesolr_index_document_build().
 */
function mymodule_apachesolr_index_document_build(ApacheSolrDocument $document, $entity, $entity_type, $env_id) {
    //dsm($entity_type);
    //if the type is file
    if($entity_type == 'file'){
        //add a field node title
        $title = code for getting the node tile of this file
        $document-&gt;addField('ts_field_node_title', $title);
    }
}


Now this extra field will be available in your search results. So you can directly use the title instead of file name.

/**
* Implements hook_apachesolr_process_results().
*/
function mymodule_apachesolr_process_results(&amp;$arg) {

    for($i = 0, $l = count($arg); $i &lt; $l; $i++) {
        //if entity type is file change the title
        if($arg[$i]['node']-&gt;entity_type != 'node'){
           $arg[$i]['title'] = $arg[$i]['fields']['ts_field_node_title'];
        }
    }

}


Peace! :)