Add module-generated pages to Drupal 7's search index I have a custom module that provides pages via hook_menu(). The page callback returns HTML-formatted output that is then displayed. The information is fetched from an external database, so it is not a  node/custom content type.

Since the displayed information is somehow the heart of this Drupal site, I want to add the information to Drupal's search index.

How can I facilitate this?
Implement hook_search_info() to describe your new search type.
Implement hook_update_index(), build up the content you wanted to be indexed, and throw it over to search_index() (see the example in hook_update_index()).
Profit.


Be sure to follow all the advice in the comments in the linked functions, and check out the core node and user modules' implementations of these hooks for examples of exactly what you need to do. The comments for hook_search_execute() should also prove pretty helpful.