Hook Advance Search Form I want to hook the Drupal advance search form for add more filter criteria,

I want to add the below criteria
1) Search By Post Date
2) Search Between Post Date
3) Search by last day, last 7 days  

I applied the hook Mymodule_search_form_alter(&amp;$form, $form_state) {} to add the fields,  

Please You suggest me Guys that how can i alter the search query, i am looking for this by last 2 days, but nothing found

This is the link that i got only  

https://stackoverflow.com/questions/8575289/extending-drupal-7-search

But that not works,

Any suggestions Please...!!
To alter the query itself, try hook_search_api_query_alter (for search api) or hook_search_execute for the core search