Igor Motov
a1192044f2
Add ability to get snapshot status for running snapshots
...
Closes #4946
2014-03-17 20:13:49 -04:00
David Pilato
f54e9246c1
Add _cat/plugins endpoint
...
If we want to have a full picture of versions running in a cluster, we need to add a `_cat/plugins` endpoint.
Response could look like:
```sh
% curl es2:9200/_cat/plugins?v
node component version type url desc
es1 mapper-attachments 1.7.0 j Adds the attachment type allowing to parse difference attachment formats
es1 lang-javascript 1.4.0 j JavaScript plugin allowing to add javascript scripting support
es1 analysis-smartcn 1.9.0 j Smart Chinese analysis support
es1 marvel 1.1.0 j/s http://localhost:9200/_plugins/marvel Elasticsearch Management & Monitoring
es1 kopf 0.5.3 s http://localhost:9200/_plugins/kopf kopf - simple web administration tool for ElasticSearch
es2 mapper-attachments 2.0.0.RC1 j Adds the attachment type allowing to parse difference attachment formats
es2 lang-javascript 2.0.0.RC1 j JavaScript plugin allowing to add javascript scripting support
es2 analysis-smartcn 2.0.0.RC1 j Smart Chinese analysis support
```
Closes #4824 .
2014-03-16 12:16:09 +01:00
Adrien Grand
65d3b61b97
Add an option to force _optimize operations.
...
When forced, the index will be merged even if it contains a single segment with
no deletions.
Close #5243
2014-03-14 18:21:56 +01:00
Boaz Leskes
b7a95d11a7
Introduced VersionType.FORCE & VersionType.EXTERNAL_GTE
...
Also added "external_gt" as an alias name for VersionType.EXTERNAL , accessible for the rest layer.
Closes #4213 , Closes #2946
2014-03-10 21:07:17 +01:00
Zachary Tong
4fe69528d2
[TEST] Add version and master_node parameter to _cluster/state
2014-02-28 08:27:17 -05:00
Lee Hinman
e53a43800e
Add `explain` flag support to the reroute API
...
By specifying the `explain` flag, an explanation for the reason a
command can or cannot be executed is returned. No allocation commands
are actually performed.
Returns a response similar to:
{
"state": {...cluster state...},
"acknowledged": true,
"explanations" : [ {
"command" : "cancel",
"parameters" : {
"index" : "decide",
"shard" : 0,
"node" : "IvpoKRdtRiGrQ_WKtt4_4w",
"allow_primary" : false
},
"decisions" : [ {
"decider" : "cancel_allocation_command",
"decision" : "YES",
"explanation" : "..."
} ]
}, {
"command" : "move",
"parameters" : {
"index" : "decide",
"shard" : 0,
"from_node" : "IvpoKRdtRiGrQ_WKtt4_4w",
"to_node" : "IvpoKRdtRiGrQ_WKtt4_4w"
},
"decisions" : [ {
"decider" : "same_shard",
"decision" : "NO",
"explanation" : "shard cannot be allocated on same node [IvpoKRdtRiGrQ_WKtt4_4w] it already exists on"
},
etc
]
}]
}
also removes AllocationExplanation from cluster state
Closes #2483
Closes #5169
2014-02-27 09:48:51 -07:00
Alexander Reelsen
b02e6dc996
Migrating NodesInfo API to use plugins instead of singular plugin
...
In order to be consistent (and because in 1.0 we switched from
parameter driven information to specifzing the metrics as part of the URI)
this patch moves from 'plugin' to 'plugins' in the Nodes Info API.
2014-02-11 10:05:10 +01:00
Luca Cavanna
dbc2ba22a8
[TEST] Added REST tests for _cat/thread_pool endpoint
2014-02-10 16:20:03 +01:00
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
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
9bc3d996ff
[SPECS] Updated percolator specs.
2014-01-20 18:18:27 +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
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
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