Skip to content

Commit

Permalink
script/mapping: cleanup old/unused mapping method
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed Nov 1, 2016
1 parent 73bad00 commit d8ee972
Showing 1 changed file with 0 additions and 60 deletions.
60 changes: 0 additions & 60 deletions lib/MetaCPAN/Script/Mapping.pm
Expand Up @@ -63,65 +63,5 @@ sub delete_mapping {
$self->model->deploy( delete => $self->delete );
}

sub map_perlmongers {
my ( $self, $es ) = @_;
return $es->put_mapping(
index => ['cpan'],
type => 'perlmongers',
properties => {
city => { type => "string" },
continent => { type => "string" },
email => { properties => { type => { type => "string" } } },
inception_date =>
{ format => "dateOptionalTime", type => "date" },
latitude => { type => "object" },
location => {
properties => {
city => { type => "string" },
continent => { type => "string" },
country => { type => "string" },
latitude => { type => "string" },
longitude => { type => "string" },
region => { type => "object" },
state => { type => "string" },
},
},
longitude => { type => "object" },
mailing_list => {
properties => {
email => {
properties => {
domain => { type => "string" },
type => { type => "string" },
user => { type => "string" },
},
},
name => { type => "string" },
},
},
name => { type => "string" },
pm_id => { type => "string" },
region => { type => "string" },
state => { type => "object" },
status => { type => "string" },
tsar => {
properties => {
email => {
properties => {
domain => { type => "string" },
type => { type => "string" },
user => { type => "string" },
},
},
name => { type => "string" },
},
},
web => { type => "string" },
},

);

}

__PACKAGE__->meta->make_immutable;
1;

0 comments on commit d8ee972

Please sign in to comment.