From fa7063d35f42c27beb994809d509c45f1c786906 Mon Sep 17 00:00:00 2001 From: Yang Yang Date: Fri, 30 Aug 2024 08:05:22 -0700 Subject: [PATCH] change getSearchQueryCollectionResult to be public method (#411) Co-authored-by: Yang Yang --- .../linkedin/metadata/restli/BaseSearchableEntityResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restli-resources/src/main/java/com/linkedin/metadata/restli/BaseSearchableEntityResource.java b/restli-resources/src/main/java/com/linkedin/metadata/restli/BaseSearchableEntityResource.java index a86dd61fc..3884f3ef6 100644 --- a/restli-resources/src/main/java/com/linkedin/metadata/restli/BaseSearchableEntityResource.java +++ b/restli-resources/src/main/java/com/linkedin/metadata/restli/BaseSearchableEntityResource.java @@ -210,7 +210,7 @@ public Task autocomplete(@ActionParam(PARAM_QUERY) @Nonnull * @return CollectionResult which contains: 1. aspect values fetched from MySQL DB, 2. Total count 3. Search result metadata. */ @Nonnull - private CollectionResult getSearchQueryCollectionResult(@Nonnull SearchResult searchResult, + public CollectionResult getSearchQueryCollectionResult(@Nonnull SearchResult searchResult, @Nullable String[] aspectNames, boolean isInternalModelsEnabled) { final List matchedUrns = searchResult.getDocumentList()