OpenSearch/rest-api-spec/test/index
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_with_id.yaml Remove hard-coded "ok": true from REST responses 2014-01-07 09:27:07 -07:00
15_without_id.yaml Remove hard-coded "ok": true from REST responses 2014-01-07 09:27:07 -07:00
20_optype.yaml Renamed "ok" and "not_ok" to "is_true" and "is_false" 2013-07-01 15:58:23 +02:00
30_internal_version.yaml Renamed "ok" and "not_ok" to "is_true" and "is_false" 2013-07-01 15:58:23 +02:00
35_external_version.yaml Allow 0 as a valid external version 2014-05-16 22:10:16 +02:00
36_external_gte_version.yaml Allow 0 as a valid external version 2014-05-16 22:10:16 +02:00
37_force_version.yaml Introduced VersionType.FORCE & VersionType.EXTERNAL_GTE 2014-03-10 21:07:17 +01:00
40_routing.yaml Rest: Add all meta fields to the top level json document. 2015-06-04 23:42:17 +02:00
50_parent.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_refresh.yaml [TEST] decreased number of replicas to 0 in refresh tests 2014-03-31 11:28:34 +02:00
70_timestamp.yaml Rest: Add all meta fields to the top level json document. 2015-06-04 23:42:17 +02:00
75_ttl.yaml Rest: Add all meta fields to the top level json document. 2015-06-04 23:42:17 +02:00
TODO.txt Remove async replication from the docs and REST spec 2015-03-19 15:34:12 +01:00