File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
content/commands/ft.create Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -431,10 +431,6 @@ author_id TAG SORTABLE author_ids TAG title TEXT name TEXT
431
431
{{< / highlight >}}
432
432
433
433
In this example, keys for author data use the key pattern ` author:details:<id> ` while keys for book data use the pattern ` book:details:<id> ` .
434
- </details >
435
-
436
- <details open >
437
- <summary ><b >Index a JSON document using a JSON Path expression</b ></summary >
438
434
439
435
Index authors whose names start with G.
440
436
@@ -451,10 +447,14 @@ Index only books that have a subtitle.
451
447
Index books that have a "categories" attribute where each category is separated by a ` ; ` character.
452
448
453
449
{{< highlight bash >}}
454
- 127.0.0.1:6379> FT.CREATE books-idx ON HASH PREFIX 1 book: details FILTER SCHEMA title TEXT categories TAG SEPARATOR ";"
450
+ 127.0.0.1:6379> FT.CREATE books-idx ON HASH PREFIX 1 book: details SCHEMA title TEXT categories TAG SEPARATOR ";"
455
451
{{< / highlight >}}
452
+ </details >
453
+
454
+ <details open >
455
+ <summary ><b >Index a JSON document using a JSON Path expression</b ></summary >
456
456
457
- Index a JSON document using a JSON Path expression .
457
+ The following example uses data similar to the hash examples above but uses JSON instead .
458
458
459
459
{{< highlight bash >}}
460
460
127.0.0.1:6379> FT.CREATE idx ON JSON SCHEMA $.title AS title TEXT $.categories AS categories TAG
You can’t perform that action at this time.
0 commit comments