Skip to content

Commit 7b8a356

Browse files
DOC-5842 modify index/query page for notebook content
1 parent e783070 commit 7b8a356

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

content/develop/clients/jedis/queryjson.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ to learn more about the available connection options.
6363
{{< clients-example java_home_json connect >}}
6464
{{< /clients-example >}}
6565

66+
Delete any existing index called `idx:users` and any keys that start with `user:`.
67+
68+
{{< clients-example java_home_json cleanup_json >}}
69+
{{< /clients-example >}}
70+
6671
Create an index. In this example, only JSON documents with the key prefix `user:` are indexed. For more information, see [Query syntax]({{< relref "/develop/ai/search-and-query/query/" >}}).
6772

6873
{{< clients-example java_home_json make_index >}}
@@ -112,6 +117,13 @@ option of `FTCreateParams` when you create the index. The code below shows these
112117
changes with a new index called `hash-idx:users`, which is otherwise the same as
113118
the `idx:users` index used for JSON documents in the previous examples.
114119

120+
First, delete any existing index called `hash-idx:users` and any keys that start with `huser:`.
121+
122+
{{< clients-example java_home_json cleanup_hash >}}
123+
{{< /clients-example >}}
124+
125+
Now create the new index:
126+
115127
{{< clients-example java_home_json make_hash_index >}}
116128
{{< /clients-example >}}
117129

0 commit comments

Comments
 (0)