File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -500,7 +500,11 @@ def search(
500
500
""" # noqa
501
501
args , query = self ._mk_query_args (query , query_params = query_params )
502
502
st = time .time ()
503
- options = {NEVER_DECODE : True }
503
+
504
+ options = {}
505
+ if get_protocol_version (self .client ) not in ["3" , 3 ]:
506
+ options [NEVER_DECODE ] = True
507
+
504
508
res = self .execute_command (SEARCH_CMD , * args , ** options )
505
509
506
510
if isinstance (res , Pipeline ):
@@ -928,7 +932,11 @@ async def search(
928
932
""" # noqa
929
933
args , query = self ._mk_query_args (query , query_params = query_params )
930
934
st = time .time ()
931
- options = {NEVER_DECODE : True }
935
+
936
+ options = {}
937
+ if get_protocol_version (self .client ) not in ["3" , 3 ]:
938
+ options [NEVER_DECODE ] = True
939
+
932
940
res = await self .execute_command (SEARCH_CMD , * args , ** options )
933
941
934
942
if isinstance (res , Pipeline ):
You can’t perform that action at this time.
0 commit comments