diff --git a/apachesolr_search.module b/apachesolr_search.module
index c4686d5..2f0c418 100644
--- a/apachesolr_search.module
+++ b/apachesolr_search.module
@@ -892,6 +892,8 @@ function apachesolr_search_search_results($keys = NULL, $conditions = NULL, $sea
       }
       // Full text behavior. Triggers with a text search or a facet
       elseif (($keys || isset($conditions['f'])) || ($empty_search_behavior == 'results')) {
+        // Don't allow local params to pass through to EDismax from the url.
+        $keys = preg_replace('/^(?:{![^}]*}\s*)+/',' ', $keys);
         $params['q'] = $keys;
         // Hardcoded apachesolr name since we rely on this for the facets
         $context['page_id'] = $search_page['page_id'];
