Skip to content

Instantly share code, notes, and snippets.

@buddhamagnet
Last active October 25, 2018 15:21
Show Gist options
  • Save buddhamagnet/b2ef1289e41aa7f9634e79b637b42cbf to your computer and use it in GitHub Desktop.
Save buddhamagnet/b2ef1289e41aa7f9634e79b637b42cbf to your computer and use it in GitHub Desktop.
Econ-elasticsearch-setup
  • Run brew install elasticsearch
  • Navigate to cp-schema/search and run curl -H "Content-Type: application/json" -XPUT http://localhost:9200/t1 --data-binary @mappings.json
  • Send docs i.e. curl -H "Content-Type: application/json" -XPOST http://localhost:9200/t1/canonical -d '{"tegID": "12"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment