We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 14910da + 0787320 commit d43f8abCopy full SHA for d43f8ab
templates/javascript/onboarding/method.mustache
@@ -0,0 +1,15 @@
1
+import { algoliasearch } from 'algoliasearch';
2
+
3
+// Connect and authenticate with your Algolia app
4
+const client = algoliasearch('YourApplicationID', 'YourWriteAPIKey');
5
6
+// Fetch and index objects in Algolia
7
+const processRecords = async () => {
8
+ const datasetRequest = await fetch('https://dashboard.algolia.com/sample_datasets/movie.json');
9
+ const objects = await datasetRequest.json();
10
+ // return client.saveObjects({ indexName: 'movies_index', objects });
11
+};
12
13
+processRecords()
14
+ .then(() => console.log('Successfully indexed objects!'))
15
+ .catch((err) => console.error(err));
0 commit comments