0

i am planning to create an custom search module in drupal .my aim is to replace the existing search feature (ie the default search ) is there is any way to override the default search feature ...

ramya
  • 175
  • 4
  • 11

3 Answers3

1

Sure there is! See this example: http://drupal.org/project/apachesolr

Rimian
  • 36,864
  • 16
  • 117
  • 117
1

You can implement hook_search and create your own search, and you can use Custom Search to set your default search and/or disable the standard ones.

You can also just use the Forms API and hook_menu and do something completely custom.

Also check out the accepted answer to Search hook for filtering results? for another idea.

Community
  • 1
  • 1
mpdonadio
  • 2,891
  • 3
  • 35
  • 54
1

I'm not sure of your Drupal background - but if you're new, you might like to know: you can do a lot with Exposed Filters in Views to provide search functionalitites. Depending on what you want to do, you could just de-activate the search module, and create a View with exposed filters for searching the appropriate content types and fields, and create a Block display for that view (on the left side of the UI, where you make a "page").

James
  • 661
  • 7
  • 16