Skip to content

Instantly share code, notes, and snippets.

@ramr
Created August 2, 2017 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramr/d831da01957b446186935a520db86e3c to your computer and use it in GitHub Desktop.
Save ramr/d831da01957b446186935a520db86e3c to your computer and use it in GitHub Desktop.
update elastic search index info
curl -XGET 'localhost:9200/meteor_namespace/resourceTypes/CHEBI_10?pretty'
{
"_index" : "meteor_namespace",
"_type" : "resourceTypes",
"_id" : "CHEBI_10",
"_version" : 3,
"found" : true,
"_source" : {
"additional_properties" : {
"alkaloid_id" : {
"name" : "alkaloid",
"value" : 1.1,
"_id" : "alkaloid_id"
},
"metabolite_id" : {
"name" : "metabolite",
"value" : 1.0,
"_id" : "metabolite_id"
}
},
"source" : "CHEBI",
"synonyms" : [ "(+)-Atherospermoline", "XGEAUXVPBXUBKN-NSOVKSMOSA-N", "C36H38N2O6" ],
"name" : "(+)-Atherospermoline",
"definition" : "An isoquinoline that has formula C36H38N2O6."
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment