272 Commits

Author SHA1 Message Date
Martijn van Groningen
bb01995722 Made APIs consistently accept a query in the request body's query field.
The following APIs now accept the query in a top level `query` field like:
* delete_by_query
* validate_query
* count

These APIs used to accept the query directly in the request body which was inconsistent with the search and explain APIs. For this reason t

Closes #4074
2014-01-02 10:06:01 +01:00
Honza Král
2d29bb7a63 [API] bulk request now supports timeout, see #4220 2013-11-25 11:53:32 +01:00
Karel Minarik
afcc9d52ab [API] Changed fields parameter to required in "Get Field Mapping" API
Also reworded `include_defaults` description.
2013-11-05 11:17:59 +01:00
spenceralger
5ef83b6c9a Updated "version_type" to match delete.json 2013-10-30 17:26:32 -07:00
spenceralger
d85e264d03 Fixed method name, and the doc url 2013-10-30 14:16:55 -07:00
Boaz Leskes
ebdde4ea46 Added spec + tests for the GetFieldMapping API
Introduced in https://github.com/elasticsearch/elasticsearch/issues/3941
2013-10-30 19:19:35 +01:00
spenceralger
1cfe0f32c6 Added URL to indices.get_template to match previous change
Since the name is no longer required, added a supporting path to the paths array.
2013-10-23 21:14:02 -07:00
Boaz Leskes
87df522786 updated source filtering tests and spec
Fixed id tests to be strings.
Changed the _source_* param of get_source as they have changed in core.
2013-10-08 18:18:20 +02:00
Boaz Leskes
a04bce96c7 The name parameter of indices.get_template is not required. 2013-10-08 18:16:27 +02:00
Clinton Gormley
e791f463b1 [API] cluster.health wait_for_nodes is a string, not a number 2013-10-01 19:28:46 +02:00
spenceralger
a6c9150427 Reverse course
See comment [here](2dd7f4f652 (commitcomment-4189612))
2013-09-26 09:52:23 -07:00
spenceralger
e7465fee87 Added path to exist, supporting optional "type" part
Since the type is an optional part, there needs to be a path that can be used without it.
2013-09-25 20:03:28 -07:00
Honza Kral
559d284f41 [API] formatting issues 2013-09-25 14:08:18 +02:00
Clinton Gormley
a78781cdc6 [API] Added _source,_source_include,_source_exclude to
* explain
* get
* mget
* search
* get_source
2013-09-23 13:23:25 +02:00
Clinton Gormley
653ae20603 Added the clear_scroll spec 2013-09-20 22:21:26 +02:00
Clinton Gormley
e0adae6497 completion_fields and field_data fields not support in node stats yet.
See https://github.com/elasticsearch/elasticsearch/issues/3746
2013-09-20 14:15:08 +02:00
Clinton Gormley
36b489cbc2 Added completion stats to cluster.node_stats and indices.stats 2013-09-20 13:26:04 +02:00
Karel Minarik
6cfbd2f7c4 Removed the incorrect info about _all default for index in indices.get_mapping API 2013-09-09 23:36:45 +02:00
Karel Minarik
5b8df7eba6 Fixed incorrect default JSON spec for get_source API 2013-09-09 20:59:47 +02:00
Karel Minarik
6196efa553 Fixed a typo on the get API spec 2013-09-09 17:04:50 +02:00
Karel Minarik
746bdb12b3 Added the default _all value for document type in get_source API 2013-09-09 14:00:40 +02:00
Karel Minarik
dc10b9b19a Added the default _all value for document type in get API 2013-09-09 13:36:31 +02:00
Karel Minarik
44c56b0888 Added the default index value to the search API spec 2013-09-09 13:33:46 +02:00
Karel Minarik
46c8bd186c Changed the JSON spec to include the default document API in the exists API 2013-09-09 11:56:09 +02:00
Honza Kral
313cd4ea59 add master_timeout to cluster state changing operations 2013-07-23 00:06:25 +02:00
Clinton Gormley
846420904d Mget doesn't support "parent" and "routing" params in the query string 2013-07-01 13:14:16 +02:00
Karel Minarik
11db906004 Added the "get_source" API
Specific endpoint for:

    curl -XGET 'http://localhost:9200/twitter/tweet/1/_source'
2013-06-22 21:25:01 +02:00
Karel Minarik
2424828eaa Fixed, that body is not required in the "explain" API 2013-06-22 19:16:44 +02:00
Karel Minarik
b3645bbeb9 Added missing parameters to the "delete_by_query" API
(Added parameters related to qs queries.)
2013-06-22 17:04:21 +02:00
Karel Minarik
b966f74f4d Improved description for index parameter in "delete_by_query" API 2013-06-22 16:55:03 +02:00
Karel Minarik
4c0487d005 Added, that body is required in "percolate" API 2013-06-22 11:28:14 +02:00
Karel Minarik
21d17b8fd8 Added, that body is required in "msearch" 2013-06-21 22:35:25 +02:00
Karel Minarik
b471ecad9b Added, that body is required in "mget" API 2013-06-21 18:38:55 +02:00
Karel Minarik
2a85552b6a Added the q URL parameter to the indices.validate_query API 2013-06-21 18:02:22 +02:00
Karel Minarik
68d3beb8c3 Improved formatting of endpoint in indices.stats 2013-06-21 16:58:41 +02:00
Clinton Gormley
7e26a7eb8b Changed body to be required in update_aliases 2013-06-21 12:44:17 +02:00
Clinton Gormley
6eaccb2a6b Removed put_aliases as we already have update_aliases. 2013-06-21 12:44:10 +02:00
Karel Minarik
fc97f8349b Revert cfd49f8: type is required in "indices.put_mapping"
Fixed required, fixed the path
2013-06-20 17:07:06 +02:00
Karel Minarik
a30fc0a37a Fixed: type in "indices.put_mapping" is not required 2013-06-20 16:38:52 +02:00
Karel Minarik
059f78e5e6 Fixed: body is required in indices.put_aliases 2013-06-20 15:06:20 +02:00
Karel Minarik
aa503acf2d Fixed: body is not required in indices.put_alias 2013-06-20 15:05:37 +02:00
Karel Minarik
92f9f165ea Added the "Put Aliases" API 2013-06-20 13:05:06 +02:00
Karel Minarik
1dd08750b4 Corrected timeout description in the indices.get_aliases API 2013-06-20 13:05:06 +02:00
Karel Minarik
b1e8e21fb6 Added, that index and name are required for indices.put_alias 2013-06-20 13:05:06 +02:00
Clinton Gormley
a276671f86 Added timeout param to cluster.node_info 2013-06-20 11:44:02 +02:00
Clinton Gormley
2b91529c98 Added "version" param to delete and update 2013-06-20 11:34:18 +02:00
Karel Minarik
48176a1e85 Revert "Corrected indices.get_warmer API (index not required, base path just /_warmer)"
This reverts commit 9834e49a86c609e0e7dc7e28e0ee94c97eb4628c.
2013-06-20 11:21:19 +02:00
Karel Minarik
79a5dc9ee5 Corrected indices.get_warmer API (index not required, base path just /_warmer) 2013-06-20 11:04:45 +02:00
Karel Minarik
7d9387452e Removed index and name parameters from the "Get Alias" API 2013-06-19 17:53:15 +02:00
Clinton Gormley
d06496b918 In the index API, id should be specified in the URL, not the query string 2013-06-19 15:32:30 +02:00