make isBot (#14914)

This commit is contained in:
07Himank 2024-01-29 16:08:03 +05:30 committed by GitHub
parent bb2433966d
commit db7db07812
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 0 deletions

View File

@ -32,6 +32,7 @@ public class TeamIndex implements SearchIndex {
suggest.stream().map(SearchSuggest::getInput).collect(Collectors.toList())));
doc.put("suggest", suggest);
doc.put("entityType", Entity.TEAM);
doc.put("isBot", false);
doc.put(
"displayName",
CommonUtil.nullOrEmpty(team.getDisplayName()) ? team.getName() : team.getDisplayName());

View File

@ -249,6 +249,9 @@
"deleted": {
"type": "text"
},
"isBot": {
"type": "boolean"
},
"entityType": {
"type": "keyword"
},

View File

@ -258,6 +258,9 @@
"deleted": {
"type": "text"
},
"isBot": {
"type": "boolean"
},
"entityType": {
"type": "keyword"
},

View File

@ -203,6 +203,9 @@
"deleted": {
"type": "text"
},
"isBot": {
"type": "boolean"
},
"entityType": {
"type": "keyword"
},