0.0.10 • Published 2 years ago

@chembl/chembl-elasticsearch-service v0.0.10

Weekly downloads
-
License
Apache-2.0
Repository
gitlab
Last release
2 years ago

ChEMBL Elasticsearch Service

The NPM Repository is here: https://www.npmjs.com/package/@chembl/chembl-elasticsearch-service

This package can be used in web applications to load data from the ChEMBL's elasticsearch.

Examples

Getting a single document:

To load this:

GET chembl_molecule/_doc/CHEMBL59?_source=molecule_structures.canonical_smiles,_metadata.drug.drug_data.applicants

Use the following code:

ESProxyService.getESDocument(indexName, docID, docSource)
  .then((response) => {
    const dataReceived = response.data._source;
    // Do something with the data
  })
  .catch((error) => {
    // handle error
  });
0.0.3

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.4

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.1

2 years ago