docbrown/config/elasticsearch/mappings/users.json
Krzysztof Rybka 20a19daa67
Copy username to search_fields (#11045)
* Copy username to search_fields

* Add test for searching by a username

* Add data update script for reindexing users for username search

* Comment out ReindexUsersForProfiles update script

Co-authored-by: rhymes <rhymes@hey.com>
2020-11-02 08:38:15 -06:00

87 lines
1.6 KiB
JSON

{
"dynamic": "strict",
"properties": {
"id": {
"type": "keyword"
},
"available_for": {
"type": "keyword",
"copy_to": "search_fields"
},
"badge_achievements_count": {
"type": "integer"
},
"comments_count": {
"type": "integer"
},
"employer_name": {
"type": "keyword",
"copy_to": "search_fields"
},
"hotness_score": {
"type": "integer"
},
"last_comment_at": {
"type": "date"
},
"last_indexed_at": {
"type": "date"
},
"mostly_work_with": {
"type": "keyword",
"copy_to": "search_fields"
},
"name": {
"type": "text",
"copy_to": "search_fields"
},
"path": {
"type": "keyword"
},
// deprecated in favor of public_reactions_count, to be removed
"positive_reactions_count": {
"type": "integer"
},
"public_reactions_count": {
"type": "integer"
},
"profile_image_90": {
"type": "keyword"
},
"reactions_count": {
"type": "integer"
},
"roles": {
"type": "keyword"
},
"search_fields": {
"type": "text"
},
"username": {
"type": "keyword",
"copy_to": "search_fields"
},
"profile_fields": {
"type": "nested",
"properties": {
"name": {
"type": "keyword"
},
"value": {
"type": "keyword"
}
}
},
"custom_profile_fields": {
"type": "nested",
"properties": {
"name": {
"type": "keyword"
},
"value": {
"type": "keyword"
}
}
}
}
}