Index: wp-includes/class-wp-query.php
===================================================================
--- wp-includes/class-wp-query.php	(revision 38623)
+++ wp-includes/class-wp-query.php	(working copy)
@@ -1323,10 +1323,20 @@
 		$n = ! empty( $q['exact'] ) ? '' : '%';
 		$searchand = '';
 		$q['search_orderby_title'] = array();
+
+		/**
+		 * Filters whether to exclude search terms preceded with a hyphen
+		 *
+		 * @since 4.7.0
+		 *
+		 * @param bool Whether the search query exclude terms preceded with a hyphen
+		 */
+		$hyphen_exclusion = apply_filters( 'wp_search_exclusion', '__return_true' );
+
 		foreach ( $q['search_terms'] as $term ) {
 			// Terms prefixed with '-' should be excluded.
 			$include = '-' !== substr( $term, 0, 1 );
-			if ( $include ) {
+			if ( $include || ! $hyphen_exclusion ) {
 				$like_op  = 'LIKE';
 				$andor_op = 'OR';
 			} else {
