Drupal Search Programmatically I need to implement my own search method in order to find nodes with some keywords in their title or body and with a specific type, but I don't know how to do this.

I tried with do_search() and node_search() methods but I don't get results.
You need to use search_data().


  Perform a standard search on the given keys, and return the formatted results.