Package to enable elastic search within adonis application
npm install @juristic/adonis-elasticsearchThe package uses the Adonis Manager framework, as so you might want to specify different connections, and are able to switch between them with ease as follows:
``ts
import elasticSearch from "@ioc:Juristic/ElasticSearch";
// Define connection here
// ↓
elasticSearch.use("local").search({ links: ["s3/link"], searchTerm: "foo" })
`
by default the connection used is defined in config/elasticSearch.ts
yarn add @juristic/adonis-elasticsearch
`configure
`
node ace configure @juristic/adonis-elasticsearch
``