1.0.11 • Published 2 years ago
lib-opensearch v1.0.11
lib-opensearch
Overview
How to run...
1. Clone this repository.
git clone https://github.com/MoleculeEngineering/lib-opensearch.git
2. Update .env file
Obtain the AWS_SECRET_ACCESS_KEY from the dev team and update the value.
The .env file contains all the env specific variables your api needs to start. PLEASE DO NOT ADD ANY ADDITIONAL PARAMETER TO THIS FILE. This is not a configuration file.
3. Install packages
npm install
or
yarn install
4. Run the console
node
let start = async function() { let myTest= require('./index.js')(env); const result = await myTest.search({text: searchText, entity: domain, tenantId: tenantId, fuzziness: false, limit: 10, offset: 0}); console.log(result); }
start()
5. Run tests to make sure the library is working
npm run func
or
yarn func