From 69c8dab4d0262802e0eeb7234ec8244a4aa96513 Mon Sep 17 00:00:00 2001 From: Sam <31706678+samlovestech@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:36:25 -0800 Subject: [PATCH] update the searchv2 endpoint name (#365) Co-authored-by: senchen --- .../linkedin/metadata/restli/BaseSearchableEntityResource.java | 2 +- .../main/java/com/linkedin/metadata/restli/RestliConstants.java | 1 + 2 files changed, 2 insertions(+), 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 fbe9f6d53..b52a891ed 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 @@ -125,7 +125,7 @@ public Task> search(@QueryParam(PA * @param pagingContext pagination context * @return list of all {@link VALUE} objects along with search result metadata */ - @Finder(FINDER_SEARCH) + @Finder(FINDER_SEARCH_V2) @Nonnull public Task> searchV2(@QueryParam(PARAM_INPUT) @Nonnull String input, @QueryParam(PARAM_ASPECTS) @Optional @Nullable String[] aspectNames, diff --git a/restli-resources/src/main/java/com/linkedin/metadata/restli/RestliConstants.java b/restli-resources/src/main/java/com/linkedin/metadata/restli/RestliConstants.java index ffab3cffd..830457cfb 100644 --- a/restli-resources/src/main/java/com/linkedin/metadata/restli/RestliConstants.java +++ b/restli-resources/src/main/java/com/linkedin/metadata/restli/RestliConstants.java @@ -4,6 +4,7 @@ public final class RestliConstants { private RestliConstants() { } public static final String FINDER_SEARCH = "search"; + public static final String FINDER_SEARCH_V2 = "searchV2"; public static final String FINDER_FILTER = "filter"; public static final String FINDER_COUNT_AGGREGATE = "countAggregate";