diff --git a/module/VuFind/src/VuFind/Search/Base/Options.php b/module/VuFind/src/VuFind/Search/Base/Options.php
index e47e1affefb730ea5868bcfc3c15e48b746398ed..157512d351a2af241a88b1e52c2c941917e0920b 100644
--- a/module/VuFind/src/VuFind/Search/Base/Options.php
+++ b/module/VuFind/src/VuFind/Search/Base/Options.php
@@ -559,6 +559,17 @@ abstract class Options implements ServiceLocatorAwareInterface
         return $this;
     }
 
+    /**
+     * Unset the service locator.
+     *
+     * @return Params
+     */
+    public function unsetServiceLocator()
+    {
+        $this->serviceLocator = null;
+        return $this;
+    }
+
     /**
      * Get the service locator.
      *
diff --git a/module/VuFind/src/VuFind/Search/Base/Params.php b/module/VuFind/src/VuFind/Search/Base/Params.php
index 6215d78808a06b729cf5d792687d40246d4d2163..ab372cc3ae6786ac76840fbc8d9336fac656b578 100644
--- a/module/VuFind/src/VuFind/Search/Base/Params.php
+++ b/module/VuFind/src/VuFind/Search/Base/Params.php
@@ -1511,7 +1511,7 @@ class Params implements ServiceLocatorAwareInterface
         $this->serviceLocator = null;
         $options = $this->getOptions();
         if (method_exists($options, 'unsetServiceLocator')) {
-            $params->unsetServiceLocator();
+            $options->unsetServiceLocator();
         }
         return $this;
     }