Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| courses:cs397:winter2017:elasticsearch [2017/04/16 19:24] – [Aggregations] admin | courses:cs397:winter2017:elasticsearch [2017/04/16 19:26] (current) – [Inserting documents to an index] admin | ||
|---|---|---|---|
| Line 97: | Line 97: | ||
| + | ==== Adding from a File ==== | ||
| + | |||
| + | mongoimport --db dbname --collection whichcollection --file mydata.json | ||
| + | |||
| + | curl -XPOST ' | ||
| + | |||
| + | curl -XPOST ' | ||
| ===== Deleting Information ===== | ===== Deleting Information ===== | ||
| curl -XDELETE ' | curl -XDELETE ' | ||
