From d6e41b7b2cc50ef79fe9af8ad9e66154e7d8f037 Mon Sep 17 00:00:00 2001 From: David Bacon <92148649+Doysch@users.noreply.github.com> Date: Thu, 22 Dec 2022 17:09:39 +0000 Subject: [PATCH] Update rest_API_return_top_1000_hits.js Deleted the unnecessary "connect to API client" and "connect to index" parts of the script --- javascript/rest_API_return_top_1000_hits.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/javascript/rest_API_return_top_1000_hits.js b/javascript/rest_API_return_top_1000_hits.js index 3a86d0e..f8cda17 100644 --- a/javascript/rest_API_return_top_1000_hits.js +++ b/javascript/rest_API_return_top_1000_hits.js @@ -19,14 +19,6 @@ const ALGOLIA_INDEX_NAME = process.env.ALGOLIA_INDEX_NAME; const fs = require("fs"); const { fileURLToPath } = require("url"); -// Start the API client -// https://www.algolia.com/doc/api-client/getting-started/instantiate-client-index/ -const client = algoliasearch(ALGOLIA_APP_ID, ALGOLIA_API_KEY); - -// Create an index (or connect to it, if an index with the name `ALGOLIA_INDEX_NAME` already exists) -// https://www.algolia.com/doc/api-client/getting-started/instantiate-client-index/#initialize-an-index -const index = client.initIndex(ALGOLIA_INDEX_NAME); - // // Create fetch request to Rest API for top searches limited to 1000 // https://www.algolia.com/doc/rest-api/analytics/#get-top-searches (async () => {