summaryrefslogtreecommitdiff
path: root/docs/examples/search_json_examples.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/search_json_examples.ipynb')
-rw-r--r--docs/examples/search_json_examples.ipynb6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/examples/search_json_examples.ipynb b/docs/examples/search_json_examples.ipynb
index 6673663..b66e336 100644
--- a/docs/examples/search_json_examples.ipynb
+++ b/docs/examples/search_json_examples.ipynb
@@ -59,9 +59,9 @@
" \"city\": \"Tel Aviv\"\n",
" }\n",
"}\n",
- "r.json().set(\"user:1\", Path.rootPath(), user1)\n",
- "r.json().set(\"user:2\", Path.rootPath(), user2)\n",
- "r.json().set(\"user:3\", Path.rootPath(), user3)\n",
+ "r.json().set(\"user:1\", Path.root_path(), user1)\n",
+ "r.json().set(\"user:2\", Path.root_path(), user2)\n",
+ "r.json().set(\"user:3\", Path.root_path(), user3)\n",
"\n",
"schema = (TextField(\"$.user.name\", as_name=\"name\"),TagField(\"$.user.city\", as_name=\"city\"), NumericField(\"$.user.age\", as_name=\"age\"))\n",
"r.ft().create_index(schema, definition=IndexDefinition(prefix=[\"user:\"], index_type=IndexType.JSON))"