diff --git a/src/Query/Query.php b/src/Query/Query.php
index cef2f67..265e130 100644
--- a/src/Query/Query.php
+++ b/src/Query/Query.php
@@ -417,7 +417,7 @@ class Query implements QueryInterface {
   public function __sleep() {
     $this->indexId = $this->index->id();
     $keys = get_object_vars($this);
-    unset($keys['index']);
+    unset($keys['index'], $keys['resultsCache'], $keys['stringTranslation']);
     return array_keys($keys);
   }
 
diff --git a/src/Tests/IntegrationTest.php b/src/Tests/IntegrationTest.php
index c6f177e..ecda5b9 100644
--- a/src/Tests/IntegrationTest.php
+++ b/src/Tests/IntegrationTest.php
@@ -174,6 +174,9 @@ class IntegrationTest extends WebTestBase {
     $this->assertText($this->t('The index was successfully saved.'));
     $index = entity_load('search_api_index', $index2_id, TRUE);
     $this->assertUrl($index->urlInfo('fields'), array(), 'Correct redirect to index fields page.');
+
+    // Verify that search queries can be serialized.
+    serialize($index->query());
   }
 
   /**
