Martijn van Groningen
f4bf0d5112
Replaced `ignore_indices` with `ignore_unavailable`, `expand_wildcards` and `allow_no_indices`.
...
* `ignore_unavailable` - Controls whether to ignore if any specified indices are unavailable, this includes indices that don't exist or closed indices. Either `true` or `false` can be specified.
* `allow_no_indices` - Controls whether to fail if a wildcard indices expressions results into no concrete indices. Either `true` or `false` can be specified. For example if the wildcard expression `foo*` is specified and no indices are available that start with `foo` then depending on this setting the request will fail. This setting is also applicable when `_all`, `*` or no index has been specified.
* `expand_wildcards` - Controls to what kind of concrete indices wildcard indices expression expand to. If `open` is specified then the wildcard expression if expanded to only open indices and if `closed` is specified then the wildcard expression if expanded only to closed indices. Also both values (`open,closed`) can be specified to expand to all indices.
Closes to #4436
2014-01-02 12:19:45 +01:00
Martijn van Groningen
a7bb28c0e7
Made single shards APIs fail if routing is configured to be required in the mapping.
...
This change make single shard requests fail when no routing is specified and routing has been configured to be required in the mapping. Thi
Closes #4506
2014-01-02 10:47:53 +01:00
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
Simon Willnauer
fa4315005b
Allow for version >= 0.90.10
2013-12-23 12:07:05 +01:00
Clinton Gormley
b8aba737f4
[TEST] Added skip clause to analyze API with text format.
...
No longer supported in 1.0.0.RC1
2013-12-11 22:43:18 +00:00
Clinton Gormley
13d9d17155
Update README with full command to generate spec
2013-12-11 18:33:45 +00:00
Boaz Leskes
ea4a908bdb
Added field mapping API tests which use wild cards
...
See: https://github.com/elasticsearch/elasticsearch/issues/4367
2013-12-11 15:00:33 +01:00
Karel Minarik
ccbb0e5c97
[UTIL] Fixed an error for the `--output` parameter in `thor api:spec:generate`
2013-12-05 17:36:54 +01:00
Honza Král
2d29bb7a63
[API] bulk request now supports timeout, see #4220
2013-11-25 11:53:32 +01:00
Clinton Gormley
381436843d
[TEST] Fixed suggestion tests for 1.0.0.Beta1
...
Results order has changed because the standard analyzer no
longer removes stopwords
2013-11-07 14:26:22 +01:00
Clinton Gormley
602c3b6782
[TEST] Renamed _percolator to .percolator
2013-11-07 14:25:24 +01:00
Clinton Gormley
c579164a88
[TEST] Fixed bad indentation on realtime_refresh tests
2013-11-05 13:28:47 +01:00
Karel Minarik
e051c8a663
[TEST] Create the index with `number_of_replicas: 0` for "Realtime Refresh" tests
2013-11-05 11:24:31 +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
Karel Minarik
da9da0c7a2
[TEST] Removed the `skip` in the common test "setup" definition
...
Until the issue with skipping tests en masse is resolved, let's use individual `skip` statements,
as supported in current YAML runners.
2013-11-05 10:05:34 +01:00
Karel Minarik
e49683a5ee
[TEST] Fixed incorrect `skip` behaviour in the "Get Field Mapping" API tests
2013-11-05 09:47:02 +01:00
Clinton Gormley
57894b70f4
[TEST] Test for get_field_mapping was calling get_mapping
2013-11-02 13:21:06 +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
Clinton Gormley
cf795cfe4c
[TEST] Corrected YAML syntax in mget/70_source_filtering
...
and broke it up into multiple tests which are easier to debug
2013-10-26 13:09:37 +02:00
Zachary Tong
e5daab0b6b
Remove unescessary newline continuation
...
Newline continuation causes some yaml parsers to interpret the
hash as a string instead of a proper hash
2013-10-25 14:14:12 -04: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
d202d3386a
Added brackets to a do command.
2013-10-11 12:29:44 +02:00
Boaz Leskes
4a91a243b1
Normalizing the source filtering params of get_source with the rest of the API
2013-10-11 12:29:17 +02:00
Zachary Tong
6e2deaa4b7
Get all templates not available before 0.90.3
2013-10-09 13:11:00 +02: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
Clinton Gormley
a958d5a63d
[TEST] In the open indices test, wait for yellow after opening
2013-09-25 19:29:16 +02:00
Clinton Gormley
7d6869e149
[TEST] single alias APIs not supported before 0.90.1
2013-09-25 18:59:12 +02:00
Clinton Gormley
8e9a71341e
[TEST] get_source not supported before 0.90.1
2013-09-25 18:59:12 +02:00
Honza Kral
559d284f41
[API] formatting issues
2013-09-25 14:08:18 +02:00
Clinton Gormley
e283e0dc38
[TEST] Fixed the delete_template test so that it works for 0.90.*
2013-09-25 13:54:08 +02:00
Clinton Gormley
766d6e60ea
[TEST] The get_mapping change in format is in master, not 0.90.*
2013-09-25 13:39:58 +02:00
Clinton Gormley
8a4d668227
Percolation results have changed in master
2013-09-23 13:53:45 +02:00
Clinton Gormley
be8fad31cf
The get_mapping tests were the wrong way around
2013-09-23 13:53:32 +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
Spencer Alger
13719a4c2e
removed some spaces that cause my yaml parser to choke
2013-09-18 08:54:17 -07:00
Clinton Gormley
5a31353fb0
Updated the test README to allow multiple test sections and an initial setup section
2013-09-18 15:54:58 +02:00
Clinton Gormley
e957aa3364
Changed the get_mapping test to handle versions correctly
2013-09-18 15:29:40 +02:00
Clinton Gormley
1eed74c9be
Moved get-missing template tests into their own file
2013-09-18 15:29:21 +02:00
Clinton Gormley
853b661789
Removed the regression tests for aliases - missing index etc
...
should be caught by the client before it hits ES
2013-09-18 15:28:51 +02:00
Clinton Gormley
0ff03b5652
Fixed the skip range on percolator tests
2013-09-17 14:28:26 +02:00
Clinton Gormley
f3e69a150d
Fixed put_template test to work with 0.90.3 onwards, where
...
a missing template now throws a 404
2013-09-17 14:28:14 +02:00
Clinton Gormley
59ca459b1c
Fixed indices.open test - need to wait for shards to be allocated
...
before trying to close the index
2013-09-17 14:16:18 +02:00
Clinton Gormley
1279a29ee3
Explain returns a 1, not 1.0
2013-09-16 20:56:59 +02:00
Clinton Gormley
e0e4b6b4dc
Rename weird-index to start with test- so that it gets cleaned up
2013-09-16 20:56:48 +02:00
Clinton Gormley
de4a84ccee
Scroll test was missing an index - fails when other indices present
2013-09-16 20:56:32 +02:00
Clinton Gormley
3011201a51
Fixed indentation on an analyzer test
2013-09-16 20:56:12 +02:00
Karel Minarik
81ffa94937
Added an example of test `setup` into the `indices.analyze` API
2013-09-12 10:27:46 +02:00
Karel Minarik
397235e2f2
Changed the `ignore_missing` client parameter to `ignore: 404`
...
This should make easier any potential expansion such as:
client.update('index', 'type', 41, {...}, ignore: 409
Also restructured and renamed the test suite a bit as part of the commit.
---
This reverts commit 0b142cc8812d8d090e48ea0ad89c007767870b91, "Removed client-specific `ignore_missing` parameter".
2013-09-09 23:36:45 +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
cb4b04e49f
Added tests for default document type in `get` and `get_source` APIs
2013-09-09 23:36:45 +02:00
Karel Minarik
e784cff1b0
Revert "Changed the missing `type` to `_all` in "Get Source" test"
...
This reverts commit f834a8b9a18739ba97eba592be98ce6804082d37.
2013-09-09 23:36:45 +02:00
Karel Minarik
bd9befbc80
Revert "Changed the missing `type` to `_all` in "Get" test"
...
This reverts commit c7b376a4222d68788c59ffefbaaeae33d70536b8.
2013-09-09 23:36:45 +02:00
Karel Minarik
d0a282727f
Renamed the "All indices" test for `_search` API to "Default index"
...
This reverts commit 51713399e943412866e95cf94f341cb4625ef831.
2013-09-09 23:36:44 +02:00
Karel Minarik
62a489b07b
Added test for client-side default document type in `exists` API
...
This reverts commit f6f037e6b15b51023c6ca45adbd394fd16e714f1.
2013-09-09 23:36:44 +02:00
Karel Minarik
4e0396768b
Improved and fixed "Get Mapping" tests
...
* Fixed error in `skip` explanation for "get type" test
* Separated the tests for getting index/type mapping
I vote for removing the "get type" test entirely, since it just tests ancient versions.
2013-09-09 23:36:44 +02:00
Karel Minarik
690151516d
Fixed incorrect test names in "Update" fields / meta-fields tests
2013-09-09 23:36:44 +02:00
Karel Minarik
ad3bf79c6a
Changed the "Indices Analyze" test to better correspond with the new test structure
...
1. Move the "text format" test into separate file
2. Remove the "JSON format" from test names
2013-09-09 23:36:44 +02:00
Karel Minarik
1300982e22
Removed test "setup" in "Indices Analyze" test
...
When the runner contract is specified as "run all the tests in the file in sequence,
resetting cluster after each file", it makes is hard to translate the concept into
regular Test::Unit environment.
Changed the "Analyze API JSON format - index and field" test to perform the necessary
setup as part of the test code.
2013-09-09 23:36:44 +02:00
Karel Minarik
46059673ef
Changed the missing `type` to `_all` in "Get" test
2013-09-09 23:36:44 +02:00
Karel Minarik
7933dbe205
Corrected test names for "Bulk" test suite
2013-09-09 23:36:43 +02:00
Karel Minarik
e1bfc0aa27
Changed the missing `type` to `_all` in "Get Source" test
2013-09-09 23:36:43 +02:00
Karel Minarik
a4228bf2bc
Changed the "default index/type" to use `index: _all` and renamed to "All indices"
2013-09-09 23:36:43 +02:00
Karel Minarik
0949195f90
Removed test for client-side default type in `exists` API
2013-09-09 23:36:43 +02:00
Karel Minarik
081b3e3982
Removed client-specific `ignore_missing` parameter
...
This parameter can introduce confusion, since people might think this is something
working on Elasticsearch level, eg. passing it to `curl`
2013-09-09 23:36:43 +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
Boaz Leskes
dbc0823a77
Added version skip commands for source filtering tests
2013-07-30 14:00:23 +02:00
Boaz Leskes
495667facb
Added source filtering to tests
2013-07-30 13:30:45 +02:00
Zachary Tong
b6d90d52bd
Replace refresh with cluster.health check
...
Possible to fail this test with a 500 NoShardsAvailable error, due
to the index not being fully allocated before the analyze call is
executed.
Changing for a wait_for_status: yellow fixes the occasional problem.
2013-07-26 07:40:11 +02:00
Zachary Tong
4274e9df4f
Change script language to something guaranteed to never exist
2013-07-26 07:40:06 +02:00
Honza Kral
f4cce2c634
cluster.node_info
2013-07-24 17:13:03 +02:00
Honza Kral
ee1db9781f
cluster state
2013-07-24 17:08:54 +02:00
Honza Kral
35deed9bc3
indices.clear_cache
2013-07-24 16:51:55 +02:00
Honza Kral
1d1dc72e23
cluster.node_stats
2013-07-24 16:51:38 +02:00
Honza Kral
8490bf32b7
indices.snapshot_index
2013-07-24 16:05:38 +02:00
Honza Kral
76912f4a6f
indices.segments
2013-07-24 16:05:21 +02:00
Honza Kral
cf95ee9888
sanity check for stats
2013-07-24 15:59:08 +02:00
Honza Kral
e925ea3b78
validate query
2013-07-24 04:12:03 +02:00
Honza Kral
12597309c6
Optimize tests
2013-07-24 03:57:58 +02:00
Honza Kral
938ffdfea4
indices.status
2013-07-24 03:51:57 +02:00
Honza Kral
c447fe5002
open/close index tests
2013-07-24 03:47:52 +02:00
Honza Kral
fb512495cb
use flush instead of cluster health to avoid writing a separate test
2013-07-24 03:41:02 +02:00
Honza Kral
85616ca620
Basic explain tests
2013-07-24 01:54:12 +02:00
Honza Kral
738faec713
Super simple super useless mlt test
2013-07-24 01:47:28 +02:00
Honza Kral
2e06c35b98
Percolate tests
2013-07-24 01:39:20 +02:00
Honza Kral
d24fa52099
Warmer APIs
2013-07-24 01:28:27 +02:00
Honza Kral
f147872fd9
update_aliases basic tests
2013-07-24 01:17:51 +02:00
Honza Kral
b1284d0301
ticket #3259 still isn't done
2013-07-23 20:42:20 +02:00
Honza Kral
2527f5a9fa
Make put_mapping tests work for 0.90.2 and master
2013-07-23 20:26:58 +02:00
Honza Kral
3e01daf34f
enable skip to be in the middle of a test
2013-07-23 20:24:46 +02:00
Honza Kral
434b70ba91
Siggest api broken in current release
2013-07-23 20:10:59 +02:00
Honza Kral
82de8c35e7
Delete ignores parent param
2013-07-23 20:10:48 +02:00
Honza Kral
875de1a5a6
suggest api tests
2013-07-23 19:26:22 +02:00
Honza Kral
77fe6f25e2
formattings issues
2013-07-23 19:20:40 +02:00
Honza Kral
d029c1aaca
Added regression tests for #3363 and #3364
2013-07-23 18:55:07 +02:00
Honza Kral
313cd4ea59
add master_timeout to cluster state changing operations
2013-07-23 00:06:25 +02:00
Honza Kral
cca1c50632
Add a comment about using \. to escape dots in yaml lookup paths
2013-07-22 00:51:35 +02:00
Honza Kral
2a7d2f06d8
Indices settings tests
2013-07-22 00:49:53 +02:00
Honza Kral
1e98b711ca
Delete by query tests
2013-07-22 00:40:20 +02:00
Honza Kral
2fb0ec9feb
msearch tests
2013-07-22 00:40:12 +02:00
Honza Kral
efb28d47da
Bulk tests
2013-07-20 21:12:39 +02:00
Honza Kral
34183b4dee
Template APIs tests
2013-07-20 21:12:27 +02:00
Honza Kral
f7c48ad616
Alias API tests
2013-07-20 20:32:44 +02:00
Honza Kral
ac40b3a996
Basic tests for get/set cluster settings
2013-07-18 16:46:41 +02:00
Honza Kral
fc4d50ca29
super basic test for cluster.reroute
2013-07-18 16:36:20 +02:00
Honza Kral
0109e78891
Added test for searching over type and all indices
2013-07-18 16:23:22 +02:00
Honza Kral
5f4438f34c
Basic scroll tests
2013-07-16 16:43:47 +02:00
Honza Kral
5e93ee6104
Tests for indices.exists
2013-07-15 15:04:56 +02:00
Honza Kral
817f24798a
Delete mapping tests
...
also testing exists_type
2013-07-15 15:01:48 +02:00
Honza Kral
59af51838a
tests for get_mapping
2013-07-15 14:53:32 +02:00
Honza Kral
84289de744
Add basic tests for put mapping
2013-07-15 14:43:27 +02:00
Boaz Leskes
1cae9b82d2
fixed parent/routing mget tests - missing fields parameter
2013-07-15 10:31:28 +02:00
Honza Kral
cde1260e81
Unicode in parent/routing
2013-07-14 15:44:57 +02:00
Honza Kral
11712e4de7
unicode in index name, dot in type name
2013-07-14 15:43:07 +02:00
Honza Kral
3166c17186
Sprinkle some unicode in GET tests
2013-07-14 15:37:55 +02:00
Honza Kral
564d209956
Update text ids
2013-07-12 18:26:18 +02:00
Honza Kral
2c128b8cca
mget ids and formatting
2013-07-11 14:04:16 +02:00
Honza Kral
4117eb5509
more numeric ids
2013-07-11 13:52:20 +02:00
Honza Kral
277b10a0a9
fixing old format of indices.analyze tests
2013-07-11 13:52:03 +02:00
Honza Kral
d3e5543cd0
lucene_version is only in es sine 0.90.1
2013-07-11 13:51:36 +02:00
Honza Kral
77e427e707
skip clause for get_source tests
2013-07-11 13:50:59 +02:00
Honza Kral
67fd978494
text ids
2013-07-11 02:32:35 +02:00
Honza Kral
0fb4a1193f
text ids
2013-07-10 14:18:37 +02:00
Honza Kral
81130c5a06
Text ids
2013-07-10 14:16:04 +02:00
Honza Kral
feb43df479
IDs are stings in json returned by ES, respect that
2013-07-10 14:10:53 +02:00
Clinton Gormley
f268a9246c
Improved formatting of test README
2013-07-02 11:28:50 +02:00
Clinton Gormley
00e520bcf4
Added tests for exists, get_source and mget
2013-07-01 16:03:37 +02:00
Clinton Gormley
660ec31ded
Clarified that testing a field called "" (empty string) tests the whole $var
2013-07-01 16:03:03 +02:00
Clinton Gormley
6aa5b10f5d
Added realtime/refresh tests to get
2013-07-01 16:02:38 +02:00
Clinton Gormley
66558ade75
meta-fields test should be fixed in 0.90.3
2013-07-01 16:01:24 +02:00
Clinton Gormley
0bc9ffbb23
Added test with missing type to get
2013-07-01 16:00:58 +02:00
Clinton Gormley
915a6986b9
Added a test with wrong parent to delete
2013-07-01 16:00:42 +02:00
Clinton Gormley
429a67e3ce
Test for missing parent param when parent enabled in index/create/update
2013-07-01 16:00:12 +02:00
Clinton Gormley
df94f08dab
Renamed "ok" and "not_ok" to "is_true" and "is_false"
...
and tidied up the layout to make it easier to read
2013-07-01 15:58:23 +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
Clinton Gormley
8cb6c6ea00
Wait-for-yellow IS required for routing, otherwise can get
...
shard-not-available instead of missing
2013-06-30 20:02:32 +02:00
Clinton Gormley
f4c9751c15
Added tests for update()
2013-06-28 19:44:13 +02:00
Clinton Gormley
17cdccb50f
wait-for-yellow is not required for the routing tests
2013-06-28 19:42:37 +02:00
Clinton Gormley
63ad90a3a8
Added test skipping to the README
2013-06-28 17:42:00 +02:00
Clinton Gormley
262b047224
Added tests for delete
2013-06-28 17:22:32 +02:00
Clinton Gormley
051284c346
Added ignore_missing test to get/10_basic
2013-06-28 17:22:32 +02:00
Clinton Gormley
5dabc444ba
Added a README explaining the functionality required to run the test suite
2013-06-27 12:55:16 +02:00
Clinton Gormley
04e6c62e1a
Added tests for get
2013-06-27 11:34:44 +02:00
Clinton Gormley
7d0b0fb146
Added tests for create
2013-06-27 11:34:43 +02:00
Clinton Gormley
f2455917e9
Fixed tests for info, ping and index
2013-06-27 11:34:43 +02:00
Clinton Gormley
7d98e42f8c
Added tests for info, ping and index
2013-06-27 11:34:43 +02:00
Karel Minarik
3a359a1f2a
[UTIL] Added a utility to print the list of APIs based on the JSON filenames
2013-06-24 18:13:29 +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
Clinton Gormley
9c2847fddb
Start adding the YAML test suite
2013-06-22 18:57:35 +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
7bf106ede6
[UTIL] Fixed whitespace in Ruby template for code generator
2013-06-21 16:58:41 +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
c1d2ada564
[UTIL] Set up `params` correctly in the Ruby template
...
When no params are specified in the spec, set `params` to empty Hash.
2013-06-20 15:13:58 +02:00
Karel Minarik
e541dc14a3
[UTIL] Improve the body argument handling in the Ruby template
2013-06-20 15:12:22 +02:00
Karel Minarik
6e3dd51f94
[UTIL] Added support for required body in Ruby template for code generator
2013-06-20 15:06:49 +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
Karel Minarik
1f33e79345
Clarified the information about utils in the README
2013-06-19 15:12:20 +02:00
Clinton Gormley
b2323afe06
In indices.put_mapping, the type is required
2013-06-19 15:01:46 +02:00
Clinton Gormley
d283afcd63
"fields" is not a valid value for "metric_family"
2013-06-19 12:14:26 +02:00
Karel Minarik
6ac00c757b
Corrected the missing `field` parameter description for `indices.analyze` API
2013-06-18 22:16:52 +02:00
Clinton Gormley
adfac2023f
update_aliases does not accept an index name in the path
2013-06-18 18:56:55 +02:00
Clinton Gormley
f248bc043f
Separated indices.aliases into indices.update_aliases and indices.get_aliases
2013-06-18 18:53:13 +02:00
Karel Minarik
9da2c92388
Added the `cluster.put_settings` API
2013-06-17 18:55:34 +02:00
Karel Minarik
226f4f1d08
Extracted the `cluster.get_settings` API spec from `cluster.settings`
2013-06-17 18:54:25 +02:00
Karel Minarik
1f65454872
Clarified the various endpoints in the `cluster.node_stats` API
2013-06-17 18:50:46 +02:00
Clinton Gormley
ca4d56f6e2
Yet another change to preference - get requests also accept shard/node
2013-06-17 16:58:12 +02:00
Clinton Gormley
5106335a82
Improved the preference description to distinguish get requests from search requests
2013-06-17 16:43:02 +02:00
Clinton Gormley
1ae0752d1a
Corrected the description of the preference parameter
2013-06-17 16:29:50 +02:00
Karel Minarik
faa0ee14bd
[UTIL] Added a source code generator using the JSON API specs
...
The generator is based on [Thor](https://github.com/wycats/thor ),
a library/framework for command line applications.
The generator will read the JSON API spec file(s), and generate
the Ruby source code (one file per API endpoint) with correct
module namespace, method names, and RDoc documentation.
It will generate a test file for each API endpoint as well.
Currently it only generates Ruby source, but can easily be
extended and adapted to generate source code for other
programming languages.
Usage example:
$ thor api:code:generate ../../api-spec/*.json --force --verbose
2013-06-16 23:25:08 +02:00
Karel Minarik
74837bfe86
[UTIL] Moved the JSON spec generator into the `utils` folder
2013-06-16 17:10:42 +02:00
Zachary Tong
fa8cffc6d6
Fix documentation URL for Scroll
2013-06-13 21:06:00 -04:00
Karel Minarik
12c341d9eb
Fixed incorrect `options` property for "cluster.node_stats" and "indices.stats"
2013-06-12 20:39:16 +02:00
Karel Minarik
a8fe8a7bbe
Changed the `nodeID` parameter to `node_id`
2013-06-12 17:52:32 +02:00
Honza Kral
0b747c1a11
Format param for analyze API
2013-06-10 17:30:24 +02:00
Honza Kral
eba4d9e59e
Add doc url for put_template
2013-06-09 21:50:59 +02:00
Honza Kral
6487fb4bd1
Required settings for path parts
2013-06-09 21:17:29 +02:00
Honza Kral
dc67d86af7
put_* apis have required body
2013-06-08 15:34:13 +02:00
Honza Kral
cd01b8dcaa
Put mapping has a body
2013-06-08 15:31:15 +02:00
Honza Kral
7f3a9c582b
Use singular for index and type, index is default for exists methods
2013-06-07 23:24:04 +02:00
Zachary Tong
a3f7d61719
Index is not required for segments
2013-06-07 14:53:03 -04:00
Zachary Tong
c962bb55f3
Index is not required for refresh
2013-06-07 14:50:14 -04:00
Zachary Tong
eb9e90e5c2
Index is required for open
2013-06-07 14:41:02 -04:00
Zachary Tong
fafadd7376
Index is not required for optimize
2013-06-07 14:38:55 -04:00
Honza Kral
ea35a7af1b
Index is not required for flush
2013-06-07 20:23:02 +02:00
Honza Kral
63d6f9907d
Split settings to get_ and set_ methods
2013-06-07 19:44:28 +02:00
Honza Kral
ec9be6a29b
snapshot_index as last of the renames
2013-06-07 19:01:48 +02:00
Honza Kral
7c6f8a0b83
validate_query for consistency
2013-06-07 18:58:34 +02:00
Honza Kral
9a4362e774
Rename api methods to verb_object for consistency
2013-06-07 18:56:11 +02:00
Honza Kral
db7d5b702e
The api is actuall called delete mapping
2013-06-07 18:38:20 +02:00
Honza Kral
0a65ed2688
Revert "Only support one path path for node info"
...
This reverts commit 04134492cc2bc8656512288b0127b4658b739c3e.
We should only support one path but we should still maintain the full
spec in the json file.
2013-06-07 18:38:20 +02:00
Honza Kral
c01c8ba5df
name the scroll endpoint correctly
2013-06-07 18:38:20 +02:00
Karel Minarik
11cac7d57e
Added "alias exists" API
2013-06-07 18:37:37 +02:00
Honza Kral
18a866d011
cluster reroute filter_metadata description
2013-06-04 17:35:22 +02:00
Honza Kral
a8a966435e
Only support one path path for node info
2013-06-04 17:30:01 +02:00
Honza Kral
97f0024374
node_hot_threads descriptions
2013-06-04 17:27:21 +02:00
Honza Kral
73b13a42a4
cluster.node. -> cluster.node_
2013-06-04 17:24:11 +02:00
Honza Kral
ab56dc2cf9
Don't expose operation_threading
2013-06-04 17:15:05 +02:00
Honza Kral
34ace1ff91
Split scroll as separate endpoint
2013-06-04 16:33:24 +02:00
Honza Kral
b8eee37882
Exists as separate endpoint
2013-06-04 13:31:37 +02:00
Honza Kral
c505079bac
Separate endpoint for op_type create
2013-06-04 13:27:25 +02:00
Honza Kral
8a7a955775
Alias -> Aliases
2013-06-04 12:58:05 +02:00
Karel Minarik
712dc3d337
Fixed, that `routing` parameter for the "search" API takes multiple values
...
“The routing parameter can be multi valued represented as a comma separated string. This will result in hitting the relevant shards where the routing values match to.”
--> http://www.elasticsearch.org/guide/reference/api/search/
2013-05-31 11:35:45 +02:00
Karel Minarik
4de673d3b0
[DOC] Improved the example in README and small edits
2013-05-28 10:55:24 +02:00
Karel Minarik
57be0827e9
Improved description for the `prefer_local` parameter in the `_percolate` and `_analyze` APIs
2013-05-28 10:52:44 +02:00
Karel Minarik
60365ff08e
Correct name and small text edits for `_msearch`
2013-05-28 10:49:36 +02:00
Karel Minarik
9f5f984bd9
Corrected the formatting in the `_mlt` API
2013-05-28 10:48:23 +02:00
Karel Minarik
ef96799629
Correct name for the `info` API (root endpoint)
2013-05-28 10:45:10 +02:00
Karel Minarik
bed0635104
Corrected the descriptions in the "create or update warmer" API
2013-05-28 10:44:51 +02:00
Karel Minarik
077fe78963
Corrected the description in the index `_open` API
2013-05-28 10:41:37 +02:00
Karel Minarik
79e54dbe73
Added basic description of the "recycler" parameter in the `_cache/clear` API
2013-05-28 10:38:30 +02:00
Karel Minarik
8b4b7be9c5
Removed the `id` URL parameter in `_explain` API
2013-05-28 10:36:06 +02:00
Karel Minarik
c9ad3658e9
Removed the `index` and `type` URL parameters for the "delete by query" API
2013-05-28 10:35:16 +02:00
Karel Minarik
c1af9236c0
Removed the `id` URL parameter in the delete index API
2013-05-28 10:34:40 +02:00
Karel Minarik
f9bc428491
Removed the `index` and `type` URL parameters for the `_count` API
2013-05-28 10:33:48 +02:00
Karel Minarik
9e7b668409
Small text edits for `_cluster/reroute`
2013-05-28 10:32:27 +02:00
Karel Minarik
40b2a5395d
Small text edits for `_cluster/nodes/stats`
2013-05-28 10:09:02 +02:00
Karel Minarik
a252592a7c
Small text edits for `_cluster/nodes/_shutdown`
2013-05-28 10:07:05 +02:00
Karel Minarik
85157f9b48
Small text edits for `_cluster/nodes`
2013-05-28 10:04:49 +02:00
Karel Minarik
8b8a60a93c
Small text edits for `_cluster/nodes/hot_threads`
2013-05-28 10:03:45 +02:00
Karel Minarik
84597e12d3
Small text edits for `_cluster/health`
2013-05-28 09:58:00 +02:00
Karel Minarik
69085bc535
Removed the incorrect `index` URL parameter from `_bulk`
2013-05-28 09:55:28 +02:00
Karel Minarik
616b2087ba
Removed incorrect `name` URL parameter from the API definitions
2013-05-28 09:53:04 +02:00
Karel Minarik
d65cc94092
Removed incorrect `index` URL parameter from API definitions
2013-05-28 09:52:56 +02:00
Karel Minarik
1096c6410c
Added the API definition for updating a document
2013-05-27 23:57:02 +02:00
Karel Minarik
dc6f742664
Added the API definition for `_suggest`
2013-05-27 23:43:02 +02:00
Karel Minarik
48c9e0c498
Added the API definition for `_msearch`
2013-05-27 23:35:57 +02:00
Karel Minarik
fc51ebfce8
Added the API definition for `_search`
2013-05-27 23:35:30 +02:00
Karel Minarik
2490b50ddd
Added the API definition for `_percolate`
2013-05-27 23:03:30 +02:00
Karel Minarik
fdf118d0a1
Added the API definition for `_mlt` ("more like this")
2013-05-27 22:55:18 +02:00
Karel Minarik
f7ad35b759
Added the API definition for `info` (root endpoint)
2013-05-27 22:32:07 +02:00
Karel Minarik
337df9ee41
Added the API definition for registering a warmer
2013-05-27 22:29:08 +02:00
Karel Minarik
15cd213da4
Added the API definition for getting a warmer
2013-05-27 22:26:58 +02:00
Karel Minarik
dfaaaad9d3
Added the API definition for deleting a warmer
2013-05-27 22:23:26 +02:00
Karel Minarik
c274a36d34
Added the API definition for `_validate/query`
2013-05-27 22:04:55 +02:00
Karel Minarik
e6c54e71f2
Removed the incorrect "required" for index in the `_settings` API
2013-05-27 21:58:36 +02:00
Karel Minarik
b045fc4a72
Added the API definition for creating or updating a template
2013-05-27 21:54:21 +02:00
Karel Minarik
3e7e96fe72
Added the API definition for getting an index template
2013-05-27 21:47:34 +02:00
Karel Minarik
c322791ccb
Added the API definition for deleting an index template
2013-05-27 21:46:47 +02:00
Karel Minarik
988a38297e
Added the API definition for `{index}/_status`
2013-05-27 21:46:23 +02:00
Karel Minarik
333b147c2c
Added missing URL parts for the `_stats` API
2013-05-27 21:10:30 +02:00
Karel Minarik
dbdb44f838
Added the API definition for `_stats`
2013-05-27 17:42:04 +02:00
Karel Minarik
2cd85fa232
Added the API definition for `_settings`
2013-05-27 17:08:45 +02:00
Karel Minarik
8f40b2235d
Added the API definition for `_segments`
2013-05-27 17:02:08 +02:00
Karel Minarik
42334966c3
Added the API definition for `_refresh`
2013-05-27 16:59:39 +02:00
Karel Minarik
7849fe12ce
Added the API definition for `_optimize`
2013-05-27 16:57:31 +02:00
Karel Minarik
4e4cdaff2a
Added the API definition for opening an index
2013-05-27 16:51:38 +02:00
Karel Minarik
83928d7fee
Added the API definition for updating the mapping
2013-05-27 16:48:41 +02:00
Karel Minarik
59e3330020
Added the API definition for `_mapping`
2013-05-27 16:23:41 +02:00
Karel Minarik
bd837355dc
Added the API definition for deleting a document type
2013-05-27 16:12:14 +02:00
Karel Minarik
f0db0f9d3a
Added the API definition for `_gateway/snapshot`
2013-05-27 15:51:52 +02:00
Karel Minarik
f336f6cf4f
Added the API definition for `_flush`
2013-05-27 15:50:14 +02:00
Karel Minarik
6b26609801
Added the API definition for checking the document type existence
2013-05-27 15:42:23 +02:00
Karel Minarik
1813dc361e
Added the API definition for checking the index existence
2013-05-27 15:36:09 +02:00
Karel Minarik
8d44d42681
Added the API definition for deleting an index
2013-05-27 15:32:10 +02:00
Karel Minarik
2848c084b7
Added the API definition for creating the index
2013-05-27 15:22:28 +02:00
Karel Minarik
7455aaf0fd
Added the API definition for closing the index
2013-05-27 15:13:24 +02:00
Karel Minarik
c2f4bbe1a4
Added the API definition for `_cache/clear`
2013-05-27 13:19:44 +02:00
Karel Minarik
e83a6a7f02
Added the API definition for `_analyze`
2013-05-27 13:10:42 +02:00
Karel Minarik
b60945b5cc
Added the API definition for creating or updating an alias
2013-05-27 13:03:22 +02:00
Karel Minarik
554e42f5fb
Added the API definition for `_aliases`
2013-05-27 12:59:26 +02:00
Karel Minarik
bf080b9385
Added the API definition for getting an alias
2013-05-27 12:43:54 +02:00
Karel Minarik
9aa12c0c72
Added the API definition for deleting a single alias
2013-05-27 12:10:25 +02:00
Karel Minarik
4bfe7bc797
Added the API definition for indexing a document
2013-05-26 19:44:03 +02:00
Karel Minarik
6f1a1b6254
Added the API definition for `_mget`
2013-05-26 19:05:59 +02:00
Karel Minarik
da4ec58dc3
Added the API definition for getting a document
...
The `_mget` API was extracted to a separate file
2013-05-26 18:53:39 +02:00
Karel Minarik
3632c5bd68
Added the API definition for `_explain`
2013-05-26 17:05:29 +02:00
Karel Minarik
eb5ed73dad
Added the API definition for "delete by query"
2013-05-26 16:43:11 +02:00
Karel Minarik
f50e468dd3
Added the API definition for deleting a document
2013-05-26 16:38:24 +02:00
Karel Minarik
ec6ec56781
Added the API definition for `_count`
2013-05-26 16:33:31 +02:00
Karel Minarik
7c7fead20b
Added the API definition for `_cluster/state`
2013-05-26 15:51:58 +02:00
Karel Minarik
72cd419617
Removed the API definition for `_search_shards`
2013-05-26 15:51:58 +02:00
Karel Minarik
659b46cfaf
Added the API definition for `_cluster/settings`
2013-05-26 15:51:58 +02:00
Karel Minarik
cff45b4a7d
Added the API definition for `_cluster/reroute`
2013-05-26 15:51:58 +02:00
Karel Minarik
9b5d017b9b
Added the API definition for `_cluster/nodes/stats`
2013-05-26 15:51:55 +02:00
Karel Minarik
57a18bfa53
Added the API definition for `_cluster/nodes/_shutdown`
2013-05-26 15:51:55 +02:00
Karel Minarik
50675df898
Removed the API definition for `_cluster/nodes/_restart`
...
The API is not supported anymore.
Info: <https://github.com/elasticsearch/elasticsearch/issues/155 >
2013-05-26 15:51:52 +02:00
Karel Minarik
e839597c0b
Added the API definition for `_cluster/nodes`
2013-05-26 15:51:28 +02:00
Karel Minarik
b3e39864fe
Added the API definition for `_cluster/nodes/hot_threads`
2013-05-26 15:51:27 +02:00
Karel Minarik
653677d1a0
Added the API definition for `_cluster/health`
2013-05-26 15:51:22 +02:00
Karel Minarik
9902da67d4
Added the API definition for `bulk`
2013-05-26 12:27:43 +02:00
Karel Minarik
3a741444bb
[SETUP] Changed, that `parts` and `params` API definitions are sorted alphabetically
2013-05-26 12:20:43 +02:00
Karel Minarik
530c9c8ebf
[UTIL] Changed, that JSON generator sorts API `parts` and `params`
2013-05-26 12:18:40 +02:00
Karel Minarik
a55750dd70
[SETUP] Added the generated JSON skeleton files
...
Files were generated with the `thor api:generate:spec --force --verbose --crawl` command,
and based on the 0.90 branch (elasticsearch/elasticsearch@5ec4064 ).
2013-05-24 13:33:06 +02:00
Karel Minarik
3f8a861768
[SETUP] Added README and LICENSE
2013-05-24 12:06:08 +02:00
Karel Minarik
91a2150373
[UTIL] Added a JSON files generator
...
The generator will parse the Elasticsearch *.java source files,
extract information about REST API endpoints (URLs, HTTP methods, URL parameters, etc),
and create a skeleton of the JSON API specification file for each endpoint.
See:
$ thor list
$ thor help api:generate:spec
2013-05-24 12:06:04 +02:00
Karel Minarik
971e7bc341
Initial commit (blank repository)
2013-05-23 17:56:22 +02:00