OpenSearch/rest-api-spec/test/mget
Adrien Grand 7c698146f5 Rest: Add all meta fields to the top level json document.
Some of our meta fields (such as _id, _version, ...) are returned as top-level
properties of the json document, while other properties (_timestamp, _routing,
...) are returned under `fields`. This commit makes all meta fields returned
as top-level properties.

So eg. `GET test/test/1?fields=_timestamp,foo` would now return

```json
{
   "_index": "test",
   "_type": "test",
   "_id": "1",
   "_version": 1,
   "_timestamp": 10000000,
   "found": true,
   "fields": {
     "foo": [ "bar" ]
   }
}
```

while it used to return

```json
{
   "_index": "test",
   "_type": "test",
   "_id": "1",
   "_version": 1,
   "found": true,
   "fields": {
     "_timestamp": 10000000,
     "foo": [ "bar" ]
   }
}
```
2015-06-04 23:42:17 +02:00
..
10_basic.yaml [TEST] Fixed mget test which used deprecated refresh flag 2014-01-16 19:43:58 +01:00
11_default_index_type.yaml Rename "exists" to "found" in TermVector and Get responses 2014-01-07 09:47:07 -07:00
12_non_existent_index.yaml Rename "exists" to "found" in TermVector and Get responses 2014-01-07 09:47:07 -07:00
13_missing_metadata.yaml [REST] Render REST errors in a structural way 2015-04-24 09:36:10 +02:00
15_ids.yaml [REST] Render REST errors in a structural way 2015-04-24 09:36:10 +02:00
20_fields.yaml [TEST] remove old tests from yaml test suite 2014-01-07 16:19:06 +01:00
30_parent.yaml Rest: Add all meta fields to the top level json document. 2015-06-04 23:42:17 +02:00
40_routing.yaml Rest: Add all meta fields to the top level json document. 2015-06-04 23:42:17 +02:00
55_parent_with_routing.yaml Rest: Add all meta fields to the top level json document. 2015-06-04 23:42:17 +02:00
60_realtime_refresh.yaml [TEST] Fixed get_source/60_realtime_refresh REST test to work against multiple nodes 2014-02-10 12:32:34 +01:00
70_source_filtering.yaml [TEST] remove old tests from yaml test suite 2014-01-07 16:19:06 +01:00
TODO.txt Added tests for exists, get_source and mget 2013-07-01 16:03:37 +02:00