diff --git a/content/commands/ft.create/index.md b/content/commands/ft.create/index.md index 11e8fa0b09..574a520376 100644 --- a/content/commands/ft.create/index.md +++ b/content/commands/ft.create/index.md @@ -431,10 +431,6 @@ author_id TAG SORTABLE author_ids TAG title TEXT name TEXT {{< / highlight >}} In this example, keys for author data use the key pattern `author:details:` while keys for book data use the pattern `book:details:`. - - -
-Index a JSON document using a JSON Path expression Index authors whose names start with G. @@ -451,10 +447,14 @@ Index only books that have a subtitle. Index books that have a "categories" attribute where each category is separated by a `;` character. {{< highlight bash >}} -127.0.0.1:6379> FT.CREATE books-idx ON HASH PREFIX 1 book:details FILTER SCHEMA title TEXT categories TAG SEPARATOR ";" +127.0.0.1:6379> FT.CREATE books-idx ON HASH PREFIX 1 book:details SCHEMA title TEXT categories TAG SEPARATOR ";" {{< / highlight >}} +
+ +
+Index a JSON document using a JSON Path expression -Index a JSON document using a JSON Path expression. +The following example uses data similar to the hash examples above but uses JSON instead. {{< highlight bash >}} 127.0.0.1:6379> FT.CREATE idx ON JSON SCHEMA $.title AS title TEXT $.categories AS categories TAG