From 5c835d1a5923cf255c84f9a0a7fd801d0c9b8844 Mon Sep 17 00:00:00 2001 From: Itamar Haber Date: Tue, 14 Mar 2023 15:00:52 +0200 Subject: [PATCH] Adds anchors --- examples/json_search/example.json | 9 +-------- examples/json_search/index.js | 7 ++++--- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/examples/json_search/example.json b/examples/json_search/example.json index 8404f92efb..6a055e7a2c 100644 --- a/examples/json_search/example.json +++ b/examples/json_search/example.json @@ -1,11 +1,4 @@ { "id": "json_search", - "file": "index.js", - "highlight": [ - "10", - "44-56", - "63" - ], - "hide": [], - "collapse": [] + "file": "index.js" } \ No newline at end of file diff --git a/examples/json_search/index.js b/examples/json_search/index.js index a9e493ebc1..8f5a0bcbca 100644 --- a/examples/json_search/index.js +++ b/examples/json_search/index.js @@ -1,8 +1,9 @@ -import { createClient, SchemaFieldTypes} from 'redis'; - +// HIDE_START +// Step 1 +import { createClient, SchemaFieldTypes } from 'redis'; const client = createClient(); - await client.connect(); +// HIDE_END // Create an index. // https://redis.io/commands/ft.create/