Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
courses:cs397:winter2017:elasticsearch [2017/04/16 19:23] – [Limiting Results] admin | courses:cs397:winter2017:elasticsearch [2017/04/16 19:26] (current) – [Inserting documents to an index] admin | ||
---|---|---|---|
Line 70: | Line 70: | ||
==== Aggregations ==== | ==== Aggregations ==== | ||
- | curl -XGET ' | + | Finding distinct entities |
- | { | + | |
- | " | + | |
- | " | + | { |
- | " | + | " |
- | " | + | " |
- | " | + | " |
+ | " | ||
+ | " | ||
+ | } | ||
} | } | ||
} | } | ||
- | } | + | }' |
- | } | + | |
- | ' | + | |
===== Adding Information ===== | ===== Adding Information ===== | ||
Line 95: | Line 96: | ||
curl –XPUT ‘localhost: | curl –XPUT ‘localhost: | ||
+ | |||
+ | ==== Adding from a File ==== | ||
+ | |||
+ | mongoimport --db dbname --collection whichcollection --file mydata.json | ||
+ | |||
+ | curl -XPOST ' | ||
+ | |||
+ | curl -XPOST ' | ||
+ | ===== Deleting Information ===== | ||
+ | |||
+ | curl -XDELETE ' | ||