Skip to content
Merged
1 change: 1 addition & 0 deletions cpanfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ requires 'Scalar::Util', '1.62'; # Moose
requires 'Search::Elasticsearch' => '8.12';
requires 'Search::Elasticsearch::Client::2_0' => '6.81';
requires 'Search::Elasticsearch::Client::5_0' => '6.81';
requires 'Search::Elasticsearch::Client::7_0' => '8.12';
requires 'Throwable::Error';
requires 'Term::Size::Any'; # for Catalyst
requires 'Text::CSV_XS';
Expand Down
24 changes: 6 additions & 18 deletions es/account/mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,27 @@
"dynamic": true,
"properties": {
"client": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"token": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
}
}
},
"code": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"id": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"identity": {
"dynamic": false,
"properties": {
"key": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"name": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions es/account/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"mapper": {
"dynamic": "false"
},
"number_of_replicas": 1,
"number_of_shards": 1,
"refresh_interval": "1s"
Expand Down
90 changes: 24 additions & 66 deletions es/author/mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,66 +5,46 @@
"fields": {
"analyzed": {
"analyzer": "standard",
"fielddata": {
"format": "disabled"
},
"fielddata": false,
"store": true,
"type": "string"
"type": "text"
}
},
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"blog": {
"dynamic": true,
"properties": {
"feed": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"url": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
}
}
},
"city": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"country": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"donation": {
"dynamic": true,
"properties": {
"id": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"name": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
}
}
},
"email": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"gravatar_url": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"is_pause_custodial_account": {
"type": "boolean"
Expand All @@ -76,34 +56,24 @@
"fields": {
"analyzed": {
"analyzer": "standard",
"fielddata": {
"format": "disabled"
},
"fielddata": false,
"store": true,
"type": "string"
"type": "text"
}
},
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"pauseid": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"perlmongers": {
"dynamic": true,
"properties": {
"name": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"url": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
}
}
},
Expand All @@ -115,43 +85,31 @@
"fields": {
"analyzed": {
"analyzer": "simple",
"fielddata": {
"format": "disabled"
},
"fielddata": false,
"store": true,
"type": "string"
"type": "text"
}
},
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"name": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
}
},
"type": "nested"
},
"region": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"updated": {
"format": "strict_date_optional_time||epoch_millis",
"type": "date"
},
"user": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"website": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
}
}
}
3 changes: 0 additions & 3 deletions es/author/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"mapper": {
"dynamic": "false"
},
"number_of_replicas": 1,
"number_of_shards": 1,
"refresh_interval": "1s"
Expand Down
28 changes: 8 additions & 20 deletions es/contributor/mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,22 @@
"dynamic": false,
"properties": {
"distribution": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"pauseid": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"email": {
"type": "keyword"
},
"name": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"email": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"pauseid": {
"type": "keyword"
},
"release_author": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"release_name": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
}
}
}
3 changes: 0 additions & 3 deletions es/contributor/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"mapper": {
"dynamic": "false"
},
"number_of_replicas": 1,
"number_of_shards": 1,
"refresh_interval": "1s"
Expand Down
12 changes: 3 additions & 9 deletions es/cover/mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,13 @@
}
},
"distribution": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"release": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"version": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
}
}
}
3 changes: 0 additions & 3 deletions es/cover/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"mapper": {
"dynamic": "false"
},
"number_of_replicas": 1,
"number_of_shards": 1,
"refresh_interval": "1s"
Expand Down
23 changes: 9 additions & 14 deletions es/cve/mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,35 @@
"dynamic": false,
"properties": {
"affected_versions": {
"type": "string"
"type": "text"
},
"cpansa_id": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"cves": {
"type": "string"
"type": "text"
},
"description": {
"type": "string"
"type": "text"
},
"distribution": {
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"references": {
"type": "string"
"type": "text"
},
"releases": {
"index": "not_analyzed",
"type": "string"
"type": "keyword"
},
"reported": {
"format": "strict_date_optional_time||epoch_millis",
"type": "date"
},
"severity": {
"type": "string"
"type": "text"
},
"versions": {
"index": "not_analyzed",
"type": "string"
"type": "keyword"
}
}
}
3 changes: 0 additions & 3 deletions es/cve/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"mapper": {
"dynamic": "false"
},
"number_of_replicas": 1,
"number_of_shards": 1,
"refresh_interval": "1s"
Expand Down
Loading