Minor: fix API Service Index entity type (#17028)

This commit is contained in:
Sriharsha Chintalapani 2024-07-15 07:26:53 -07:00 committed by GitHub
parent e66aa5363b
commit cd85fe4530
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,8 +24,7 @@ public record APIServiceIndex(APIService apiService) implements SearchIndex {
} }
public Map<String, Object> buildSearchIndexDocInternal(Map<String, Object> doc) { public Map<String, Object> buildSearchIndexDocInternal(Map<String, Object> doc) {
Map<String, Object> commonAttributes = Map<String, Object> commonAttributes = getCommonAttributesMap(apiService, Entity.API_SERVICE);
getCommonAttributesMap(apiService, Entity.SEARCH_SERVICE);
doc.putAll(commonAttributes); doc.putAll(commonAttributes);
return doc; return doc;
} }