Skip to content

Commit

Permalink
Merge pull request #1308 from metacpan/haarg/es-split-index
Browse files Browse the repository at this point in the history
Use separate indexes for each document type
  • Loading branch information
haarg authored Nov 4, 2024
2 parents bece629 + 0403168 commit 141e045
Show file tree
Hide file tree
Showing 51 changed files with 1,878 additions and 1,967 deletions.
52 changes: 52 additions & 0 deletions es/account/mapping.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"dynamic": false,
"properties": {
"access_token": {
"dynamic": true,
"properties": {
"client": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"token": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
}
}
},
"code": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"id": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"identity": {
"dynamic": false,
"properties": {
"key": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"name": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
}
}
},
"looks_human": {
"type": "boolean"
},
"passed_captcha": {
"format": "strict_date_optional_time||epoch_millis",
"type": "date"
}
}
}
8 changes: 8 additions & 0 deletions es/account/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"mapper": {
"dynamic": "false"
},
"number_of_replicas": 1,
"number_of_shards": 1,
"refresh_interval": "1s"
}
157 changes: 157 additions & 0 deletions es/author/mapping.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
{
"dynamic": false,
"properties": {
"asciiname": {
"fields": {
"analyzed": {
"analyzer": "standard",
"fielddata": {
"format": "disabled"
},
"store": true,
"type": "string"
}
},
"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"
}
}
},
"city": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"country": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"donation": {
"dynamic": true,
"properties": {
"id": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"name": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
}
}
},
"email": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"gravatar_url": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"is_pause_custodial_account": {
"type": "boolean"
},
"location": {
"type": "geo_point"
},
"name": {
"fields": {
"analyzed": {
"analyzer": "standard",
"fielddata": {
"format": "disabled"
},
"store": true,
"type": "string"
}
},
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"pauseid": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"perlmongers": {
"dynamic": true,
"properties": {
"name": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"url": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
}
}
},
"profile": {
"dynamic": false,
"include_in_root": true,
"properties": {
"id": {
"fields": {
"analyzed": {
"analyzer": "simple",
"fielddata": {
"format": "disabled"
},
"store": true,
"type": "string"
}
},
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"name": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
}
},
"type": "nested"
},
"region": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"updated": {
"format": "strict_date_optional_time||epoch_millis",
"type": "date"
},
"user": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"website": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
}
}
}
8 changes: 8 additions & 0 deletions es/author/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"mapper": {
"dynamic": "false"
},
"number_of_replicas": 1,
"number_of_shards": 1,
"refresh_interval": "1s"
}
25 changes: 25 additions & 0 deletions es/contributor/mapping.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"dynamic": false,
"properties": {
"distribution": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"pauseid": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"release_author": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"release_name": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
}
}
}
8 changes: 8 additions & 0 deletions es/contributor/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"mapper": {
"dynamic": "false"
},
"number_of_replicas": 1,
"number_of_shards": 1,
"refresh_interval": "1s"
}
40 changes: 40 additions & 0 deletions es/cover/mapping.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"dynamic": false,
"properties": {
"criteria": {
"dynamic": true,
"properties": {
"branch": {
"type": "float"
},
"condition": {
"type": "float"
},
"statement": {
"type": "float"
},
"subroutine": {
"type": "float"
},
"total": {
"type": "float"
}
}
},
"distribution": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"release": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"version": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
}
}
}
8 changes: 8 additions & 0 deletions es/cover/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"mapper": {
"dynamic": "false"
},
"number_of_replicas": 1,
"number_of_shards": 1,
"refresh_interval": "1s"
}
41 changes: 41 additions & 0 deletions es/cve/mapping.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"dynamic": false,
"properties": {
"affected_versions": {
"type": "string"
},
"cpansa_id": {
"ignore_above": 2048,
"index": "not_analyzed",
"type": "string"
},
"cves": {
"type": "string"
},
"description": {
"type": "string"
},
"distribution": {
"index": "not_analyzed",
"type": "string"
},
"references": {
"type": "string"
},
"releases": {
"index": "not_analyzed",
"type": "string"
},
"reported": {
"format": "strict_date_optional_time||epoch_millis",
"type": "date"
},
"severity": {
"type": "string"
},
"versions": {
"index": "not_analyzed",
"type": "string"
}
}
}
8 changes: 8 additions & 0 deletions es/cve/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"mapper": {
"dynamic": "false"
},
"number_of_replicas": 1,
"number_of_shards": 1,
"refresh_interval": "1s"
}
Loading

0 comments on commit 141e045

Please sign in to comment.