Skip to content

Commit f55255f

Browse files
committed
Updated APIs to 7.3.2 + fixed tests
1 parent 87e32a4 commit f55255f

File tree

56 files changed

+665
-569
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+665
-569
lines changed

build/parse_spec_base.pl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ sub process_paths {
9393
#===================================
9494
my ( $name, $method, $url ) = @_;
9595

96+
if ($url->{deprecated_paths}) {
97+
foreach my $u (@{$url->{deprecated_paths}}) {
98+
push (@{ $url->{paths} }, $u->{path});
99+
}
100+
}
96101
my @path_defns = map { process_path( $method, $_ ) } @{ $url->{paths} };
97102

98103
my %sigs;

dist-async/Changes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Revision history for Search::Elasticsearch::Async
22

3-
7.30_1 2020-07-16
3+
7.30_1 2020-08-04
44
Updated API for Elasticsearch 7.3
55

66
6.80 2020-03-25

dist-async/dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ copyright_holder = Elasticsearch BV
77
tag_format = version_%v_async
88

99
[GitHub::Meta]
10-
repo = elastic/elasticearch-perl
10+
repo = elastic/elasticsearch-perl
1111
remote = elasticsearch-perl
1212

1313
[GatherDir]

dist-client-0_90-async/Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Revision history for Search::Elasticsearch::Client::0_90::Async
22

3+
7.30_1 2020-08-04
4+
Updated API for Elasticsearch 7.3
5+
36
6.81 2020-06-26
47
Bumped to version 6.81
58

dist-client-0_90-async/dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tag_format = version_%v_client_0_90_async
88
untracked_files = warn
99

1010
[GitHub::Meta]
11-
repo = elastic/elasticearch-perl
11+
repo = elastic/elasticsearch-perl
1212

1313
[GatherDir]
1414
exclude_filename = dist.ini

dist-client-0_90/Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Revision history for Search::Elasticsearch::Client::0_90
22

3+
7.30_1 2020-08-04
4+
Updated API for Elasticsearch 7.3
5+
36
6.81 2020-06-26
47
Bumped to version 6.81
58

dist-client-0_90/dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tag_format = version_%v_client_0_90
88
untracked_files = warn
99

1010
[GitHub::Meta]
11-
repo = elastic/elasticearch-perl
11+
repo = elastic/elasticsearch-perl
1212

1313
[GatherDir]
1414
exclude_filename = dist.ini

dist-client-1_0-async/Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Revision history for Search::Elasticsearch::Client::1_0::Async
22

3+
7.30_1 2020-08-04
4+
Updated API for Elasticsearch 7.3
5+
36
6.81 2020-06-26
47
Bumped to version 6.81
58

dist-client-1_0-async/dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tag_format = version_%v_client_1_0_async
88
untracked_files = warn
99

1010
[GitHub::Meta]
11-
repo = elastic/elasticearch-perl
11+
repo = elastic/elasticsearch-perl
1212

1313
[GatherDir]
1414
exclude_filename = dist.ini

dist-client-1_0/Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Revision history for Search::Elasticsearch::Client::1_0
22

3+
7.30_1 2020-08-04
4+
Updated API for Elasticsearch 7.3
5+
36
6.81 2020-06-26
47
Bumped to version 6.81
58

dist-client-1_0/dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tag_format = version_%v_client_1_0
88
untracked_files = warn
99

1010
[GitHub::Meta]
11-
repo = elastic/elasticearch-perl
11+
repo = elastic/elasticsearch-perl
1212

1313
[GatherDir]
1414
exclude_filename = dist.ini

dist-client-2_0-async/Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Revision history for Search::Elasticsearch::Client::2_0::Async
22

3+
7.30_1 2020-08-04
4+
Updated API for Elasticsearch 7.3
5+
36
6.81 2020-06-26
47
Bumped to version 6.81
58

dist-client-2_0-async/dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tag_format = version_%v_client_2_0_async
88
untracked_files = warn
99

1010
[GitHub::Meta]
11-
repo = elastic/elasticearch-perl
11+
repo = elastic/elasticsearch-perl
1212

1313
[GatherDir]
1414
exclude_filename = dist.ini

dist-client-2_0/Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Revision history for Search::Elasticsearch::Client::2_0
22

3+
7.30_1 2020-08-04
4+
Updated API for Elasticsearch 7.3
5+
36
6.81 2020-06-26
47
Bumped to version 6.81
58

dist-client-2_0/dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tag_format = version_%v_client_2_0
88
untracked_files = warn
99

1010
[GitHub::Meta]
11-
repo = elastic/elasticearch-perl
11+
repo = elastic/elasticsearch-perl
1212

1313
[GatherDir]
1414
exclude_filename = dist.ini

dist-client-5_0-async/Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Revision history for Search::Elasticsearch::Client::5_0::Async
22

3+
7.30_1 2020-08-04
4+
Updated API for Elasticsearch 7.3
5+
36
6.81 2020-06-26
47
Bumped to version 6.81
58

dist-client-5_0-async/dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tag_format = version_%v_client_5_0_async
88
untracked_files = warn
99

1010
[GitHub::Meta]
11-
repo = elastic/elasticearch-perl
11+
repo = elastic/elasticsearch-perl
1212

1313
[GatherDir]
1414
exclude_filename = dist.ini

dist-client-5_0/Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Revision history for Search::Elasticsearch::Client::5_0
22

3+
7.30_1 2020-08-04
4+
Updated API for Elasticsearch 7.3
5+
36
6.81 2020-06-26
47
Bumped to version 6.81
58

dist-client-5_0/dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tag_format = version_%v_client_5_0
88
untracked_files = warn
99

1010
[GitHub::Meta]
11-
repo = elastic/elasticearch-perl
11+
repo = elastic/elasticsearch-perl
1212

1313
[GatherDir]
1414
exclude_filename = dist.ini

dist-client-6_0-async/Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Revision history for Search::Elasticsearch::Client::6_0::Async
22

3+
7.30_1 2020-08-04
4+
Updated API for Elasticsearch 7.3
5+
36
6.81 2020-06-26
47
Bumped to version 6.81
58

dist-client-6_0-async/dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tag_format = version_%v_client_6_0_async
88
untracked_files = warn
99

1010
[GitHub::Meta]
11-
repo = elastic/elasticearch-perl
11+
repo = elastic/elasticsearch-perl
1212

1313
[GatherDir]
1414
exclude_filename = dist.ini

dist-client-6_0/Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Revision history for Search::Elasticsearch::Client::6_0
22

3+
7.30_1 2020-08-04
4+
Updated API for Elasticsearch 7.3
5+
36
6.81 2020-06-26
47
Bumped to version 6.81
58

dist-client-6_0/dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tag_format = version_%v_client_6_0
88
untracked_files = warn
99

1010
[GitHub::Meta]
11-
repo = elastic/elasticearch-perl
11+
repo = elastic/elasticsearch-perl
1212

1313
[GatherDir]
1414
exclude_filename = dist.ini

dist-client-7_0-async/Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Revision history for Search::Elasticsearch::Client::7_0::Async
22

3+
7.30_1 2020-08-04
4+
Updated API for Elasticsearch 7.3
5+
36
6.81 2020-06-26
47
Bumped to version 6.81
58

dist-client-7_0-async/dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tag_format = version_%v_client_7_0_async
88
untracked_files = warn
99

1010
[GitHub::Meta]
11-
repo = elastic/elasticearch-perl
11+
repo = elastic/elasticsearch-perl
1212

1313
[GatherDir]
1414
exclude_filename = dist.ini

dist-client-7_0/Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Revision history for Search::Elasticsearch::Client::7_0
22

3+
7.30_1 2020-08-04
4+
Updated API for Elasticsearch 7.3
5+
36
6.81 2020-06-26
47
Bumped to version 6.81
58

dist-client-7_0/dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tag_format = version_%v_client_7_0
88
untracked_files = warn
99

1010
[GitHub::Meta]
11-
repo = elastic/elasticearch-perl
11+
repo = elastic/elasticsearch-perl
1212

1313
[GatherDir]
1414
exclude_filename = dist.ini

dist-netcurl/Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Revision history for Search::Elasticsearch::Cxn::NetCurl
22

3+
7.30_1 2020-08-04
4+
Updated API for Elasticsearch 7.3
5+
36
6.81 2020-06-26
47
Bumped to version 6.81
58

dist-netcurl/dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ copyright_holder = Elasticsearch BV
77
tag_format = version_%v_netcurl
88

99
[GitHub::Meta]
10-
repo = elastic/elasticearch-perl
10+
repo = elastic/elasticsearch-perl
1111

1212
[GatherDir]
1313
exclude_filename = dist.ini

dist/Changes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Revision history for Search::Elasticsearch
22

3-
7.30_1 2020-07-16
3+
7.30_1 2020-08-04
44
Updated API for Elasticsearch 7.3
55

66
6.81 2020-06-26

dist/dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tag_format = version_%v
88
untracked_files = warn
99

1010
[GitHub::Meta]
11-
repo = elastic/elasticearch-perl
11+
repo = elastic/elasticsearch-perl
1212

1313
[GatherDir]
1414
exclude_filename = dist.ini

lib/Search/Elasticsearch/Client/7_0/Async/Scroll.pm

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,8 @@ sub BUILDARGS {
2121
#===================================
2222
my ( $class, $search_params ) = parse_params(@_);
2323

24-
throw( 'Param',
25-
'The (scroll_in_body) parameter has been replaced by (scroll_in_qs)' )
26-
if exists $search_params->{scroll_in_body};
27-
28-
my %params;
29-
for (qw(es on_start on_result on_results on_error scroll_in_qs)) {
24+
my %params;
25+
for (qw(es on_start on_result on_results on_error)) {
3026
my $val = delete $search_params->{$_};
3127
next unless defined $val;
3228
$params{$_} = $val;
@@ -192,10 +188,7 @@ sub finish {
192188
return $d->promise;
193189
}
194190

195-
my %args
196-
= $self->scroll_in_qs
197-
? ( scroll_id => $scroll_id )
198-
: ( body => { scroll_id => $scroll_id } );
191+
my %args = ( body => { scroll_id => $scroll_id } );
199192

200193
$self->es->clear_scroll(%args)->then(
201194
sub {
@@ -361,7 +354,6 @@ functionality provided by Elasticsearch.
361354
my $es = Search::Elasticsearch::Async->new(...);
362355
my $scroll = $es->scroll_helper(
363356
scroll => '1m', # optional
364-
scroll_in_qs => 0|1, # optional
365357
366358
on_result => sub {...} # required
367359
| on_results => sub {...} # required
@@ -376,10 +368,8 @@ The L<Search::Elasticsearch::Client::7_0::Direct/scroll_helper()> method loads
376368
L<Search::Elasticsearch::Client::7_0::Async::Scroll> class and calls L</new()>,
377369
passing in any arguments.
378370
379-
You can specify a C<scroll> duration (which defaults to C<"1m">),
380-
C<scroll_in_qs> (which defaults to C<false>), and any
381-
of the listed callbacks. Any other parameters are
382-
passed directly to L<Search::Elasticsearch::Client::7_0::Direct/search()>.
371+
You can specify a C<scroll> duration (which defaults to C<"1m">).
372+
Any other parameters are passed directly to L<Search::Elasticsearch::Client::7_0::Direct/search()>.
383373
384374
The C<scroll> duration tells Elasticearch how long it should keep the scroll
385375
alive. B<Note>: this duration doesn't need to be long enough to process
@@ -389,9 +379,6 @@ a new batch of results is retrieved from the cluster.
389379
390380
By default, the C<scroll_id> is passed as the C<body> to the
391381
L<scroll|Search::Elasticsearch::Client::7_0::Direct/scroll()> request.
392-
To send it in the query string instead, set C<scroll_in_qs> to a true value,
393-
but be aware: when querying very many indices, the scroll ID can become
394-
too long for intervening proxies.
395382
396383
The C<scroll> request uses C<GET> by default. To use C<POST> instead,
397384
set L<send_get_body_as|Search::Elasticsearch::Transport/send_get_body_as> to

0 commit comments

Comments
 (0)