Here is a simple method using htaccess to turn an URL www.yoursite.com/keyword to a search results page. Htaccess code obviously not include the search engine. It only transmits the variable q to be treated by your internal search engine. Elegant and efficient solution to capture a indexing bot a on keyword page.
If your data is in MySQL database, you could use a query such as : " SELECT * FROM my_table WHERE title LIKE '%".$q."%' "