We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c4f167 commit 317ea3aCopy full SHA for 317ea3a
redis/commands/search/commands.py
@@ -5,7 +5,7 @@
5
from redis.client import Pipeline
6
from redis.utils import deprecated_function
7
8
-from ..helpers import parse_to_dict
+from ..helpers import get_protocol_version, parse_to_dict
9
from ._util import to_string
10
from .aggregation import AggregateRequest, AggregateResult, Cursor
11
from .document import Document
@@ -64,7 +64,7 @@ class SearchCommands:
64
"""Search commands."""
65
66
def _parse_results(self, cmd, res, **kwargs):
67
- if self.client.connection_pool.connection_kwargs.get("protocol") in ["3", 3]:
+ if get_protocol_version(self.client) in ["3", 3]:
68
return res
69
else:
70
return self._RESP2_MODULE_CALLBACKS[cmd](res, **kwargs)
0 commit comments