Skip to content

Commit

Permalink
Minor: fix entityType aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
harshach committed Dec 6, 2023
1 parent 1276547 commit ce72fff
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -918,8 +918,7 @@ private static SearchSourceBuilder addAggregation(SearchSourceBuilder builder) {
AggregationBuilders.terms("service.displayName.keyword")
.field("service.displayName.keyword")
.size(MAX_AGGREGATE_SIZE))
.aggregation(
AggregationBuilders.terms("entityType.keyword").field("entityType.keyword").size(MAX_AGGREGATE_SIZE))
.aggregation(AggregationBuilders.terms("entityType").field("entityType").size(MAX_AGGREGATE_SIZE))
.aggregation(AggregationBuilders.terms("tier.tagFQN").field("tier.tagFQN").size(MAX_AGGREGATE_SIZE))
.aggregation(
AggregationBuilders.terms(OWNER_DISPLAY_NAME_KEYWORD)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,9 @@
"status": {
"type": "text"
},
"entityType": {
"type": "keyword"
},
"suggest": {
"type": "completion",
"contexts": [
Expand All @@ -429,4 +432,4 @@
}
}
}
}s
}
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@
},
"provider" : {
"type": "text"
},
"entityType": {
"type": "keyword"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@
"disabled": {
"type": "text"
},
"entityType": {
"type": "keyword"
},
"classification": {
"properties": {
"id": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@
"status": {
"type": "text"
},
"entityType": {
"type": "keyword"
},
"suggest": {
"type": "completion",
"contexts": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@
},
"provider" : {
"type": "text"
},
"entityType": {
"type": "keyword"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@
"path": "deleted"
}
]
},
"entityType": {
"type": "keyword"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@
"usageCount": {
"type": "integer"
},
"entityType": {
"type": "keyword"
},
"tags": {
"properties": {
"tagFQN": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@
},
"provider" : {
"type": "text"
},
"entityType": {
"type": "keyword"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@
"path": "deleted"
}
]
},
"entityType": {
"type": "keyword"
}
}
}
Expand Down

0 comments on commit ce72fff

Please sign in to comment.