Testing
The files in this directory are used for testing purposes. Do not edit these files unless you are working on tests.
{
"key": "value"
}
{
"key": "value"
}
- this is a list
{ "key": "value" }
- this is a sub-list
{ "key": "value" }
- this is a sub-list
PUT metricbeat-2016.05.30/_doc/1?refresh
{"system.cpu.idle.pct": 0.908}
PUT metricbeat-2016.05.31/_doc/1?refresh
{"system.cpu.idle.pct": 0.105}
- test 1
- test 2
POST _reindex
{
"max_docs": 10,
"source": {
"index": "my-index-000001",
"query": {
"function_score" : {
"random_score" : {},
"min_score" : 0.9
}
}
},
"dest": {
"index": "my-new-index-000001"
}
}
GET metricbeat-2016.05.30-1/_doc/1
GET metricbeat-2016.05.31-1/_doc/1
PUT my-index-000001
{
"mappings": {
"enabled": false
}
}
PUT my-index-000001/_doc/session_1
{
"user_id": "kimchy",
"session_data": {
"arbitrary_object": {
"some_array": [ "foo", "bar", { "baz": 2 } ]
}
},
"last_updated": "2015-12-06T18:20:22"
}
GET my-index-000001/_doc/session_1
GET my-index-000001/_mapping
- The entire mapping is disabled.
- The document can be retrieved.
- Checking the mapping reveals that no fields have been added.
const foo = "bar";
- This is a JavaScript code block.