@@ -36,7 +36,7 @@ def test_query_string_depth_limit(self):
3636 """
3737 client : Valkey = self .server .get_new_client ()
3838 # Test that the default query string limit is 1000
39- assert client .execute_command ("CONFIG GET search.query-string-depth" ) == [b"search.query-string-depth" , b"1000 " ]
39+ assert client .execute_command ("CONFIG GET search.query-string-depth" ) == [b"search.query-string-depth" , b"16 " ]
4040 # Test that we can set the query string limit to 1
4141 assert client .execute_command ("CONFIG SET search.query-string-depth 1" ) == b"OK"
4242 assert client .execute_command ("FT.CREATE my_index ON HASH PREFIX 1 doc: SCHEMA price NUMERIC category TAG SEPARATOR | doc_embedding VECTOR FLAT 6 TYPE FLOAT32 DIM 128 DISTANCE_METRIC COSINE" ) == b"OK"
@@ -83,17 +83,17 @@ def test_query_string_depth_limit(self):
8383 assert False
8484 except ResponseError as e :
8585 assert str (e ) == "Invalid filter expression: `((((((((((@price:[10 20]))))))))))`. Query string is too complex"
86- # Test that the config ranges from 1 to 4294967295
86+ # Test that the config ranges from 1 to 16
8787 try :
8888 client .execute_command ("CONFIG SET search.query-string-depth 0" )
8989 assert False
9090 except ResponseError as e :
91- assert "argument must be between 1 and 4294967295 inclusive" in str (e )
91+ assert "argument must be between 1 and 16 inclusive" in str (e )
9292 try :
93- client .execute_command ("CONFIG SET search.query-string-depth 4294967296 " )
93+ client .execute_command ("CONFIG SET search.query-string-depth 17 " )
9494 assert False
9595 except ResponseError as e :
96- assert "argument must be between 1 and 4294967295 inclusive" in str (e )
96+ assert "argument must be between 1 and 16 inclusive" in str (e )
9797
9898 def test_query_string_terms_count_limit (self ):
9999 """
0 commit comments