Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
courses:cs397:winter2017:elasticsearch [2017/03/27 17:14] – [Searching Data] admin | courses:cs397:winter2017:elasticsearch [2017/03/27 17:18] – [Viewing Data] admin | ||
---|---|---|---|
Line 22: | Line 22: | ||
curl –XGET ‘localhost: | curl –XGET ‘localhost: | ||
+ | |||
+ | ==== Sorting Examples ==== | ||
+ | |||
+ | Search '' | ||
+ | |||
+ | curl -XGET ' | ||
+ | |||
+ | Search '' | ||
+ | |||
+ | curl -XGET ' | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | { " | ||
+ | ] | ||
+ | }' | ||
===== Adding Information ===== | ===== Adding Information ===== | ||
Line 28: | Line 44: | ||
curl -XPUT ' | curl -XPUT ' | ||
+ | |||
+ | ==== Inserting documents to an index ==== | ||
+ | |||
+ | Insert the JSON document (after the -d) into the index with the id '' | ||
+ | |||
+ | curl –XPUT ‘localhost: | ||
+ | |||