Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rest_API_return_top_1000_hits.js #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions javascript/rest_API_return_top_1000_hits.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down