How to call a search block I am newbie to drupal i have integrated the Apache solr search module and its working fine. I have disabled the drupal's core search.

Now I am creating my own custom module. How can I make the Apache Solr module search functionality work with my custom module? I need sorting and pagination along with search.
What are you doing in your module?, If you are building a new entity, you would to use hook_apachesolr_field_mappings() http://drupalcontrib.org/api/drupal/contributions!apachesolr!apachesolr.api.php/function/hook_apachesolr_field_mappings/7

An example is the implementation in http://drupal.org/project/apachesolr_commerce 

Regards!