Public Repository

Last pushed: 2 months ago
Short Description
NCI Thesaurus Indexed on ElasticSearch (https://ncit.nci.nih.gov/ncitbrowser/) [CORS Enabled]
Full Description

NCI Thesaurus Pull from https://ncit.nci.nih.gov/ncitbrowser/

Run Command: docker run -p 9200:9200 -e "http.host=0.0.0.0" -e "transport.host=127.0.0.1" axothacaelus/ts-db-byu

This spins it up on localhost:9200

Default user/pass (elastic, elasticpassword)

Index: "treatment"
NCI Mapping:
"name" -> treatment name with all non-alphanumeric characters replaced with '_'
"doc": -> JSON doc of the thesaurus record: code, concept_name, parent_code, synonyms, definition, display_name, concept_status, semantic_type

Sample search doing a fuzzy query with the max edit distance [2] on the phrase cancer_antigen_72_4_measurement:

*note: it will "pretty print" the results. To print normally, remove ?pretty from the url

curl -X POST -u elastic:elasticpassword -d '{"query":{"fuzzy": {"name":{"value":"cancer_antigen_72_4_measurement","boost":1.0,"fuzziness":2,"prefix_length":0,"max_expansions":50}}}}' http://localhost:9200/treatment/nci/_search\?pretty

The License will expire in 1 year. Just go to this site (https://register.elastic.co/), register for a new license, and update as follows (from https://www.elastic.co/guide/en/x-pack/current/installing-license.html):

curl -XPUT -u elastic:elasticpassword 'http://<host>:<port>/_xpack/license' -H "Content-Type: application/json" -d @license.json

Docker Pull Command
Owner
axothacaelus

Comments (0)