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
431431{{< / highlight >}}
432432
433433In 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 >
438434
439435Index authors whose names start with G.
440436
@@ -451,10 +447,14 @@ Index only books that have a subtitle.
451447Index books that have a "categories" attribute where each category is separated by a ` ; ` character.
452448
453449{{< 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 ";"
455451{{< / highlight >}}
452+ </details >
453+
454+ <details open >
455+ <summary ><b >Index a JSON document using a JSON Path expression</b ></summary >
456456
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 .
458458
459459{{< highlight bash >}}
460460127.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