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/