From 2bcac05539dbe72d995bae727aa6f31e540b3f4d Mon Sep 17 00:00:00 2001 From: Mickey Nasriachi Date: Mon, 21 Oct 2024 20:05:41 +0200 Subject: [PATCH] Added mapping --- lib/MetaCPAN/Script/Mapping/CPAN/Distribution.pm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/MetaCPAN/Script/Mapping/CPAN/Distribution.pm b/lib/MetaCPAN/Script/Mapping/CPAN/Distribution.pm index 4717fd195..9700d706f 100644 --- a/lib/MetaCPAN/Script/Mapping/CPAN/Distribution.pm +++ b/lib/MetaCPAN/Script/Mapping/CPAN/Distribution.pm @@ -65,6 +65,22 @@ sub mapping { } } }, + "repo" : { + "dynamic" : true, + "properties" : { + "github" : { + "dynamic" : true, + "properties" : { + "stars" : { + "type" : "integer" + }, + "watchers" : { + "type" : "integer" + }, + } + }, + }, + }, "name" : { "ignore_above" : 2048, "index" : "not_analyzed",