Skip to content

Commit af06608

Browse files
authored
DEV: correct errant FILTER on FT.CREATE page (#858)
1 parent e177282 commit af06608

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/commands/ft.create/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -431,10 +431,6 @@ author_id TAG SORTABLE author_ids TAG title TEXT name TEXT
431431
{{< / highlight >}}
432432

433433
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>
438434

439435
Index authors whose names start with G.
440436

@@ -451,10 +447,14 @@ Index only books that have a subtitle.
451447
Index 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 >}}
460460
127.0.0.1:6379> FT.CREATE idx ON JSON SCHEMA $.title AS title TEXT $.categories AS categories TAG

0 commit comments

Comments
 (0)