Skip to content

Instantly share code, notes, and snippets.

@qdequele
Created February 18, 2020 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qdequele/7c9a766d5e51893bea95e7cb2eb58705 to your computer and use it in GitHub Desktop.
Save qdequele/7c9a766d5e51893bea95e7cb2eb58705 to your computer and use it in GitHub Desktop.
const Meili = require('meilisearch')
// Credentials of your MeiliSearch Instance
const config = {
host: 'http://127.0.0.1:7700',
apiKey: 'masterKey',
}
const meili = new Meili(config)
meili
.Index('movies')
.search({ q: 'batman' })
.then((response) => {
console.log(response.hits)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment