0.0.10 • Published 3 years ago

@chembl/chembl-elasticsearch-service v0.0.10

Weekly downloads
-
License
Apache-2.0
Repository
gitlab
Last release
3 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

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.1

3 years ago