Skip to content

Commit 2474ae1

Browse files
committed
Adding imports for search with dialect config example in readme.
1 parent 33060dc commit 2474ae1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ By default, the client now overrides the server-side dialect with version 2, aut
161161
**Important**: Be aware that the query dialect may impact the results returned. If needed, you can revert to a different dialect version by configuring the client accordingly.
162162

163163
``` python
164+
>>> from redis.commands.search.field import TextField
165+
>>> from redis.commands.search.query import Query
166+
>>> from redis.commands.search.index_definition import IndexDefinition
167+
164168
>>> r.ft().create_index(
165169
>>> (TextField("name"), TextField("lastname")),
166170
>>> definition=IndexDefinition(prefix=["test:"]),

0 commit comments

Comments
 (0)