Skip to content

Commit 4ae5e9a

Browse files
committed
mapping: list document types, not types from index
1 parent 968a062 commit 4ae5e9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/MetaCPAN/Script/Mapping.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ has arg_list_types => (
4545
is => 'ro',
4646
isa => Bool,
4747
default => 0,
48-
documentation => 'list available index type names',
48+
documentation => 'list available document type names',
4949
);
5050

5151
has arg_cluster_info => (
@@ -457,7 +457,7 @@ sub empty_type {
457457

458458
sub list_types {
459459
my $self = shift;
460-
print "$_\n" for sort keys %{ $self->index->types };
460+
print "$_\n" sort keys %{ es_config->documents };
461461
}
462462

463463
sub show_info {

0 commit comments

Comments
 (0)