Fix #287: search api not returning all aggregations for Topics index

This commit is contained in:
Suresh Srinivas 2021-08-24 14:39:02 -07:00
parent a049ec9a4f
commit 7a0d9c867c
2 changed files with 3 additions and 0 deletions

View File

@ -213,6 +213,8 @@ public class SearchResource {
.field("description")
.lenient(true))
.aggregation(AggregationBuilders.terms("Service Type").field("service_type"))
.aggregation(AggregationBuilders.terms("Tier").field("tier"))
.aggregation(AggregationBuilders.terms("Tags").field("tags"))
.highlighter(hb)
.from(from).size(size);

View File

@ -5,6 +5,7 @@
"partitions": 56,
"retentionSize": 322122382273,
"cleanupPolicies": ["delete"],
"schemaType": "Avro",
"schemaText": "{\"namespace\":\"org.open-metadata.kafka\",\"name\":\"Customer\",\"type\":\"record\",\"fields\":[{\"name\":\"id\",\"type\":\"string\"},{\"name\":\"first_name\",\"type\":\"string\"},{\"name\":\"last_name\",\"type\":\"string\"},{\"name\":\"email\",\"type\":\"string\"},{\"name\":\"address_line_1\",\"type\":\"string\"},{\"name\":\"address_line_2\",\"type\":\"string\"},{\"name\":\"post_code\",\"type\":\"string\"},{\"name\":\"country\",\"type\":\"string\"}]}"
},