Created
May 14, 2013 19:00
-
-
Save drewr/5578505 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| curl -s -XDELETE localhost:9200/test >/dev/null | |
| curl -s -XPOST localhost:9200/test -d' | |
| { | |
| "mappings": { | |
| "t": { | |
| "properties": { | |
| "application": { | |
| "fields": { | |
| "_facet": { | |
| "include_in_all": false, | |
| "index": "not_analyzed", | |
| "index_options": "docs", | |
| "omit_norms": true, | |
| "type": "string" | |
| }, | |
| "application": { | |
| "type": "string" | |
| } | |
| }, | |
| "type": "multi_field" | |
| } | |
| } | |
| } | |
| } | |
| }' | |
| curl -s -XPUT localhost:9200/test/t/1 -d' | |
| { | |
| "application": "<166>May 9 23:59:54.429 kproxy10 local4: 130509.235954,422 Thread-5 MetricsDumper.run INFO: P_53731_9.9674.1_21611_default: LAST 12s; Text 0@0/s; Queued 0@0/s; ThrottleDenied 0@0/s : TOTAL 2d0h53m46s; Text 31444@0/s; Queued 28@0/s; ThrottleDenied 125@0/s" | |
| }' | |
| curl -s localhost:9200/test/t/1 | |
| # { | |
| # "_id": "1", | |
| # "_index": "test", | |
| # "_source": { | |
| # "application": "<166>May 9 23:59:54.429 kproxy10 local4: 130509.235954,422 Thread-5 MetricsDumper.run INFO: P_53731_9.9674.1_21611_default: LAST 12s; Text 0@0/s; Queued 0@0/s; ThrottleDenied 0@0/s : TOTAL 2d0h53m46s; Text 31444@0/s; Queued 28@0/s; ThrottleDenied 125@0/s" | |
| # }, | |
| # "_type": "t", | |
| # "_version": 1, | |
| # "exists": true | |
| # } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment