Alexander Reelsen
24abb6cf3f
Cluster state toXContent serialization only returns needed data
...
In order to make sure, that only the requested data is returned to the client,
a couple of fixes have been applied in the ClusterState.toXContent() method.
Also some tests were added to the yaml test suite
Closes #4885
2014-01-27 12:04:57 +01:00
David Pilato
09575eb95f
Revert mget yaml test changes
...
Relative to #4892
2014-01-27 11:28:32 +01:00
David Pilato
fdbdb705b9
Revert mget yaml test changes
...
Relative to #4892
2014-01-27 11:25:39 +01:00
David Pilato
4c50770a89
mget REST API should support source parameter
...
As stated in documentation, we should support `?source=` parameter in mget REST operations.
This is how to reproduce it:
```sh
curl -XDELETE "http://localhost:9200/test "
curl -XPOST "http://localhost:9200/test/type/1?refresh " -d'{
"foo": "bar"
}'
curl -XPOST "http://localhost:9200/test/type/_mget " -d'{
"ids": ["1"]
}'
curl -XGET "http://localhost:9200/test/type/_mget?source=%7B%22ids%22%3A%20%5B%221%22%5D%7D "
```
Closes #4892 .
2014-01-27 11:05:50 +01:00
Clinton Gormley
d70e6c4730
[SPEC] Updated docs URLs to point to master
2014-01-22 14:40:31 +01:00
Clinton Gormley
882fbb72fd
[SPEC] Specify bulk format for body in bulk, msearch, mpercolate
2014-01-21 16:31:51 +01:00
Clinton Gormley
5800209a1e
[TEST] Added newline at end of percolate tests
2014-01-21 16:31:50 +01:00
Clinton Gormley
acdf2a5825
[SPEC] Renamed termvectors.* to termvector and mtermvectors
...
and fixed the YAML syntax errors
2014-01-21 16:31:50 +01:00
Britta Weber
cae5eb479a
[SPEC,TEST,FIX] add spec and tests for termvector api and fix inconsistencies
...
- index and type were not read from the uri with the _mtermvectors api
- ids were not read from the uri parameters with the _mtermvectors api
2014-01-21 10:03:25 +01:00
Igor Motov
749e4d7944
[SPEC] Fix cardinality of the repository parameter in get snapshot action
2014-01-20 12:56:32 -05:00
Martijn van Groningen
efebb8d515
[TESTS] Added percolator rest tests.
2014-01-20 18:18:27 +01:00
Martijn van Groningen
9bc3d996ff
[SPECS] Updated percolator specs.
2014-01-20 18:18:27 +01:00
Spencer Alger
8c7bbbcc8f
Added setup task that clears the test template before running exists_* tests
2014-01-20 09:52:25 -07:00
Clinton Gormley
7129b9e6e6
[TEST] Added missing \n at end of YAML files, quoted * and fixed indentation
2014-01-20 13:25:16 +01:00
Clinton Gormley
a313328777
[TEST] Added missing newline at end of YAML test file
2014-01-20 13:16:04 +01:00
Luca Cavanna
55a247e257
master_timeout parameter is now taken into account when calling cluster pending tasks api through the REST layer
...
Closes #4806
2014-01-20 12:53:55 +01:00
Luca Cavanna
3a558972b2
Added base Request class for read operations that usually happen on the master but can be executed locally.
...
Added base TransportAction class for master read operations that execute locally or not depending on the request class (local flag).
Added support for local flag where missing, in a backwards compatible manner:
- IndicesExistsRequest
- GetAliasesRequest (get alias api, aliases exist api)
- TypesExistsRequest
- GetIndexTemplatesRequest (get template, template exists)
- GetSettingsRequest
- GetRepositoriesRequest
- PendingClusterTasks
Added parsing of the local flag where missing in Rest*Action.
Updated SPEC adding local flag param where missing and added REST tests that contain use of the local flag where it was just added.
Closes #3345
2014-01-20 12:35:48 +01:00
Clinton Gormley
67ec840d00
[SPEC] Various API fixes
...
Including:
* change some string params to list
* make some params or bodies required
* removed incorrect URLs
* removed incorrect params
* Fixed name of pending_tasks
2014-01-20 11:14:11 +01:00
Clinton Gormley
20b37416e3
[SPEC] Removed create.json
...
Create is a special API that is most simply and safely
implemented by calling the index() api with op_type
set to true.
2014-01-20 11:14:11 +01:00
Luca Cavanna
619c46a2a3
[SPEC] Removed empty paths from close and delete index apis
...
Although the empty paths are still registered in the java RestActions, that is only to return a meaningful error in case the index is not provided.
Index/indices are now mandatory.
2014-01-18 10:40:46 +01:00
Honza Král
fe60cca038
[SPEC] path without {index} is not allowed for indices.open api
2014-01-17 22:54:07 +01:00
Luca Cavanna
de893d80de
[SPEC] Removed _source endpoint from get api spec, as the get_source is a different api already
...
Also removed custom code that was required in the REST tests due to this.
2014-01-17 18:05:07 +01:00
Honza Král
13e6f1933b
[SPEC] removing deprecated include/exclude for get_source
...
_source_include/_source_exclude should be used instead
2014-01-17 15:38:25 +01:00
Luca Cavanna
1fba68a634
[SPEC] Added missing body object in snapshot apis
2014-01-17 15:34:42 +01:00
Clinton Gormley
53359c0d3d
[SPEC] Created snapshot.* and nodes.* namespaces
...
Moved node_info, node_stats, shutdown and hot_threads into nodes.*
Moved snapshot and repository APIs into snapshot.*
2014-01-17 11:58:44 +01:00
Clinton Gormley
612044b386
[SPEC] Added missing cat endpoints. count and recovery
...
And added missing qs params to health and indices.
2014-01-16 22:09:48 +01:00
Luca Cavanna
06057c6c39
[TEST] Added check: test section names must be unique in the same REST test suite
...
Fixed also three duplicates found
2014-01-16 21:09:55 +01:00
Clinton Gormley
258c49ea23
[SPEC] Fixed bad name in ping.json
2014-01-16 19:54:25 +01:00
Clinton Gormley
1ca11b11e4
[SPEC] Fixed cluster.get_repository spec
...
Badly named endpoint
2014-01-16 19:43:58 +01:00
Clinton Gormley
fa6e8abf48
[SPEC] Fixed cat.* spec files - were missing the endpoints
2014-01-16 19:43:58 +01:00
Clinton Gormley
c5942a4ff8
[TEST] Fixed mget test which used deprecated refresh flag
2014-01-16 19:43:58 +01:00
Clinton Gormley
64f0361f5e
[SPEC] Fixed file name, missing .json
2014-01-16 17:12:39 +01:00
Clinton Gormley
e9b14ff636
[SPEC] Separated info.json into info and ping.json (GET vs HEAD)
2014-01-16 17:07:47 +01:00
Clinton Gormley
04b6dd9d0c
[SPEC] Moved the cat API into its own namespace and added missing qs params
2014-01-16 17:06:03 +01:00
Clinton Gormley
84e2e1c177
[SPEC] Renamed snapshot/restore apis
2014-01-16 16:32:39 +01:00
Clinton Gormley
23a1fd795b
[SPEC] Fixed bad JSON in indices.open
2014-01-16 15:33:09 +01:00
Clinton Gormley
b7d4b30ad7
[SPEC] Added indices.exists_template.json
2014-01-16 15:29:50 +01:00
Clinton Gormley
5856378866
[SPEC] Added local to indices.get_mapping and indices.get_field_mapping
2014-01-16 15:29:50 +01:00
Clinton Gormley
555dbfd4b3
[SPEC] Added force to indices.refresh
2014-01-16 15:29:50 +01:00
Clinton Gormley
ec3b19a866
[SPEC] Removed refresh from indices.flush and indices.optimize
2014-01-16 15:29:50 +01:00
Clinton Gormley
c3813ceb71
[SPEC] Added empty path to indices.open and indices.close
2014-01-16 15:29:50 +01:00
Clinton Gormley
d24994e4b4
[SPEC] Removed percolate from update
2014-01-16 15:29:50 +01:00
Clinton Gormley
056609b46c
[SPEC] Added timeout, master_timeout to cluster.get_settings and cluster.reroute
2014-01-16 15:29:50 +01:00
Clinton Gormley
e86bfdae46
[SPEC] Removed percolate from index.json
2014-01-16 15:29:49 +01:00
Clinton Gormley
93cd53b8cf
[SPEC] Added _source, _source_include, _source_exclude to get_source
2014-01-16 15:29:49 +01:00
Clinton Gormley
8d3eba3035
[SPEC] Added version, version_type to get and get_source
2014-01-16 15:29:49 +01:00
Clinton Gormley
c66c9ff379
[SPEC] Added cluster.pending_tasks.json
2014-01-16 15:29:49 +01:00
Clinton Gormley
3bbab4c106
[SPEC] Added cluster.stats.json
2014-01-16 15:29:49 +01:00
Clinton Gormley
00ed78f3d6
[SPEC] Added cluster.repositories.* and cluster.snapshots.*
2014-01-16 15:29:49 +01:00
Clinton Gormley
500d6f7098
[SPEC] Added cat.json
2014-01-16 15:29:49 +01:00