MCPcopy
hub / github.com/redis/redis-py / test_explain

Method test_explain

tests/test_search.py:706–709  ·  view source on GitHub ↗
(self, client)

Source from the content-addressed store, hash-verified

704
705 @pytest.mark.redismod
706 def test_explain(self, client):
707 client.ft().create_index((TextField("f1"), TextField("f2"), TextField("f3")))
708 res = client.ft().explain("@f3:f3_val @f2:f2_val @f1:f1_val")
709 assert res
710
711 @pytest.mark.redismod
712 def test_explaincli(self, client):

Callers

nothing calls this directly

Calls 4

TextFieldClass · 0.90
create_indexMethod · 0.80
explainMethod · 0.80
ftMethod · 0.45

Tested by

no test coverage detected