Codex tools: Log in
Since version 3.0.0, the posts_search filter is used to filter the search SQL that is used in the WHERE clause of WP_Query.
posts_search
This function is applied once, in wp-includes/class-wp-query.php - in get_posts() on line 2056.
wp-includes/class-wp-query.php