Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #599 from metacpan/mickey/mapping_simplified
mapping simplified
- Loading branch information
Showing
13 changed files
with
1,471 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
package MetaCPAN::Script::Mapping::CPAN::Author; | ||
|
||
use strict; | ||
use warnings; | ||
|
||
sub mapping { | ||
'{ | ||
"dynamic" : false, | ||
"properties" : { | ||
"profile" : { | ||
"include_in_root" : true, | ||
"dynamic" : false, | ||
"type" : "nested", | ||
"properties" : { | ||
"name" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"type" : "string" | ||
}, | ||
"id" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"fields" : { | ||
"analyzed" : { | ||
"store" : true, | ||
"fielddata" : { | ||
"format" : "disabled" | ||
}, | ||
"type" : "string", | ||
"analyzer" : "simple" | ||
} | ||
}, | ||
"type" : "string" | ||
} | ||
} | ||
}, | ||
"website" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"type" : "string" | ||
}, | ||
"email" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"type" : "string" | ||
}, | ||
"city" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"type" : "string" | ||
}, | ||
"user" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"type" : "string" | ||
}, | ||
"updated" : { | ||
"format" : "strict_date_optional_time||epoch_millis", | ||
"type" : "date" | ||
}, | ||
"pauseid" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"type" : "string" | ||
}, | ||
"country" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"type" : "string" | ||
}, | ||
"gravatar_url" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"type" : "string" | ||
}, | ||
"location" : { | ||
"type" : "geo_point" | ||
}, | ||
"donation" : { | ||
"dynamic" : true, | ||
"properties" : { | ||
"name" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"type" : "string" | ||
}, | ||
"id" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"type" : "string" | ||
} | ||
} | ||
}, | ||
"asciiname" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"fields" : { | ||
"analyzed" : { | ||
"store" : true, | ||
"fielddata" : { | ||
"format" : "disabled" | ||
}, | ||
"type" : "string", | ||
"analyzer" : "standard" | ||
} | ||
}, | ||
"type" : "string" | ||
}, | ||
"name" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"fields" : { | ||
"analyzed" : { | ||
"store" : true, | ||
"fielddata" : { | ||
"format" : "disabled" | ||
}, | ||
"type" : "string", | ||
"analyzer" : "standard" | ||
} | ||
}, | ||
"type" : "string" | ||
}, | ||
"region" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"type" : "string" | ||
}, | ||
"blog" : { | ||
"dynamic" : true, | ||
"properties" : { | ||
"feed" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"type" : "string" | ||
}, | ||
"url" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"type" : "string" | ||
} | ||
} | ||
}, | ||
"perlmongers" : { | ||
"dynamic" : true, | ||
"properties" : { | ||
"url" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"type" : "string" | ||
}, | ||
"name" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"type" : "string" | ||
} | ||
} | ||
} | ||
} | ||
}'; | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
package MetaCPAN::Script::Mapping::CPAN::Distribution; | ||
|
||
use strict; | ||
use warnings; | ||
|
||
sub mapping { | ||
'{ | ||
"dynamic" : false, | ||
"properties" : { | ||
"river" : { | ||
"dynamic" : true, | ||
"properties" : { | ||
"immediate" : { | ||
"type" : "integer" | ||
}, | ||
"bucket" : { | ||
"type" : "integer" | ||
}, | ||
"total" : { | ||
"type" : "integer" | ||
} | ||
} | ||
}, | ||
"name" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"type" : "string" | ||
}, | ||
"bugs" : { | ||
"dynamic" : true, | ||
"properties" : { | ||
"rt" : { | ||
"dynamic" : true, | ||
"properties" : { | ||
"source" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"type" : "string" | ||
}, | ||
"closed" : { | ||
"type" : "integer" | ||
}, | ||
"rejected" : { | ||
"type" : "integer" | ||
}, | ||
"resolved" : { | ||
"type" : "integer" | ||
}, | ||
"active" : { | ||
"type" : "integer" | ||
}, | ||
"patched" : { | ||
"type" : "integer" | ||
}, | ||
"stalled" : { | ||
"type" : "integer" | ||
}, | ||
"open" : { | ||
"type" : "integer" | ||
}, | ||
"new" : { | ||
"type" : "integer" | ||
} | ||
} | ||
}, | ||
"github" : { | ||
"dynamic" : true, | ||
"properties" : { | ||
"source" : { | ||
"ignore_above" : 2048, | ||
"index" : "not_analyzed", | ||
"type" : "string" | ||
}, | ||
"open" : { | ||
"type" : "integer" | ||
}, | ||
"closed" : { | ||
"type" : "integer" | ||
}, | ||
"active" : { | ||
"type" : "integer" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}'; | ||
} | ||
|
||
1; |
Oops, something went wrong.