Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
courses:cs397:winter2017:elasticsearch [2017/04/16 19:24] – [Aggregations] admincourses: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 'http://localhost:9200/dbname' -d @mydata.json
 +
 +  curl -XPOST 'http://localhost:9200/dbname/_bulk' —data-binary @mydata.json
 ===== Deleting Information ===== ===== Deleting Information =====
  
   curl -XDELETE 'localhost:9200/students?pretty'   curl -XDELETE 'localhost:9200/students?pretty'
  
courses/cs397/winter2017/elasticsearch.1492370690.txt.gz · Last modified: 2017/04/16 19:24 by admin
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0