Skip to content

Commit

Permalink
mappings: add missing ES mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
egabancho committed Oct 9, 2024
1 parent 8b88f02 commit 3f64d0e
Showing 1 changed file with 225 additions and 0 deletions.
225 changes: 225 additions & 0 deletions invenio_users_resources/records/mappings/v7/users/user-v3.0.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,225 @@
{
"settings": {
"analysis": {
"char_filter": {
"strip_special_chars": {
"type": "pattern_replace",
"pattern": "[\\p{Punct}\\p{S}]",
"replacement": ""
}
},
"analyzer": {
"edge_analyzer": {
"tokenizer": "uax_url_email",
"type": "custom",
"filter": [
"lowercase",
"edgegrams"
]
},
"accent_edge_analyzer": {
"tokenizer": "uax_url_email",
"type": "custom",
"filter": [
"lowercase",
"asciifolding",
"edgegrams"
]
},
"accent_analyzer": {
"tokenizer": "standard",
"type": "custom",
"char_filter": ["strip_special_chars"],
"filter": [
"lowercase",
"asciifolding"
]
}
},
"filter": {
"lowercase": {
"type": "lowercase",
"preserve_original": true
},
"asciifolding": {
"type": "asciifolding",
"preserve_original": true
},
"edgegrams": {
"type": "edge_ngram",
"min_gram": 2,
"max_gram": 20
}
}
}
},
"mappings": {
"dynamic": "strict",
"dynamic_templates": [
{
"profile": {
"path_match": "profile.*",
"mapping": {
"type": "keyword"
}
}
},
{
"preferences": {
"path_match": "preferences.*",
"mapping": {
"type": "keyword"
}
}
},
{
"identities": {
"path_match": "identities.*",
"mapping": {
"type": "keyword"
}
}
}
],
"properties": {
"$schema": {
"type": "keyword",
"index": "false"
},
"id": {
"type": "keyword"
},
"version_id": {
"type": "integer"
},
"uuid": {
"type": "keyword"
},
"created": {
"type": "date"
},
"updated": {
"type": "date"
},
"current_login_at": {
"type": "date"
},
"active": {
"type": "boolean"
},
"confirmed_at": {
"type": "date"
},
"indexed_at": {
"type": "date"
},
"confirmed": {
"type": "boolean"
},
"blocked_at": {
"type": "date"
},
"blocked": {
"type": "boolean"
},
"verified_at": {
"type": "date"
},
"verified": {
"type": "boolean"
},
"username": {
"type": "text",
"analyzer": "accent_edge_analyzer",
"search_analyzer": "accent_analyzer",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"email": {
"type": "text",
"analyzer": "edge_analyzer",
"search_analyzer": "standard",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"email_hidden": {
"type": "keyword"
},
"domain": {
"type": "keyword"
},
"domaininfo": {
"properties": {
"status": {
"type": "integer"
},
"flagged": {
"type": "boolean"
},
"category": {
"type": "integer"
},
"tld": {
"type": "keyword"
}
}
},
"identities": {
"type": "object",
"properties": {},
"dynamic": "true"
},
"profile": {
"properties": {
"full_name": {
"type": "text",
"analyzer": "accent_edge_analyzer",
"search_analyzer": "accent_analyzer"
},
"affiliations": {
"type": "text",
"analyzer": "accent_edge_analyzer",
"search_analyzer": "accent_analyzer"
}
},
"dynamic": "true"
},
"preferences": {
"properties": {
"visibility": {
"type": "keyword"
},
"email_visibility": {
"type": "keyword"
},
"locale": {
"type": "keyword"
},
"timezone": {
"type": "keyword"
},
"notifications": {
"properties": {
"enabled": {
"type": "boolean"
}
}
}
},
"dynamic": "true"
},
"status": {
"type": "keyword"
},
"visibility": {
"type": "keyword"
}
}
}
}

0 comments on commit 3f64d0e

Please sign in to comment.