Skip to content

Commit

Permalink
make isBot (#14914)
Browse files Browse the repository at this point in the history
  • Loading branch information
07Himank authored Jan 29, 2024
1 parent bb24339 commit db7db07
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public Map<String, Object> buildESDoc() {
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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@
"deleted": {
"type": "text"
},
"isBot": {
"type": "boolean"
},
"entityType": {
"type": "keyword"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@
"deleted": {
"type": "text"
},
"isBot": {
"type": "boolean"
},
"entityType": {
"type": "keyword"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@
"deleted": {
"type": "text"
},
"isBot": {
"type": "boolean"
},
"entityType": {
"type": "keyword"
},
Expand Down

0 comments on commit db7db07

Please sign in to comment.