summaryrefslogtreecommitdiff
path: root/docs/redismodules.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/redismodules.rst')
-rw-r--r--docs/redismodules.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/redismodules.rst b/docs/redismodules.rst
index 07e756d..e4d36b1 100644
--- a/docs/redismodules.rst
+++ b/docs/redismodules.rst
@@ -110,6 +110,8 @@ These are the commands for interacting with the `RediSearch module <https://redi
.. code-block:: python
import redis
+ from redis.commands.search.field import TextField
+
r = redis.Redis()
r.ft().create_index(TextField("play", weight=5.0), TextField("ball"))
print(r.ft().info())