File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
metadata-io/src/main/java/com/linkedin/metadata/recommendation/candidatesource
metadata-service/services/src/main/java/com/linkedin/metadata/recommendation/candidatesource Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,8 @@ public boolean isEligible(
9999 @ WithSpan
100100 public List <RecommendationContent > getRecommendations (
101101 @ Nonnull OperationContext opContext , @ Nonnull RecommendationRequestContext requestContext ) {
102- SearchRequest searchRequest = buildSearchRequest (opContext .getActorContext ().getActorUrn ());
102+ SearchRequest searchRequest =
103+ buildSearchRequest (opContext .getSessionActorContext ().getActorUrn ());
103104 try (Timer .Context ignored = MetricUtils .timer (this .getClass (), "getRecentlyEdited" ).time ()) {
104105 final SearchResponse searchResponse =
105106 _searchClient .search (searchRequest , RequestOptions .DEFAULT );
Original file line number Diff line number Diff line change @@ -99,7 +99,8 @@ public boolean isEligible(
9999 @ WithSpan
100100 public List <RecommendationContent > getRecommendations (
101101 @ Nonnull OperationContext opContext , @ Nonnull RecommendationRequestContext requestContext ) {
102- SearchRequest searchRequest = buildSearchRequest (opContext .getActorContext ().getActorUrn ());
102+ SearchRequest searchRequest =
103+ buildSearchRequest (opContext .getSessionActorContext ().getActorUrn ());
103104 try (Timer .Context ignored = MetricUtils .timer (this .getClass (), "getRecentlyViewed" ).time ()) {
104105 final SearchResponse searchResponse =
105106 _searchClient .search (searchRequest , RequestOptions .DEFAULT );
Original file line number Diff line number Diff line change @@ -79,7 +79,8 @@ public boolean isEligible(
7979 @ Override
8080 public List <RecommendationContent > getRecommendations (
8181 @ Nonnull OperationContext opContext , @ Nonnull RecommendationRequestContext requestContext ) {
82- SearchRequest searchRequest = buildSearchRequest (opContext .getActorContext ().getActorUrn ());
82+ SearchRequest searchRequest =
83+ buildSearchRequest (opContext .getSessionActorContext ().getActorUrn ());
8384 try (Timer .Context ignored = MetricUtils .timer (this .getClass (), "getRecentlySearched" ).time ()) {
8485 final SearchResponse searchResponse =
8586 _searchClient .search (searchRequest , RequestOptions .DEFAULT );
You can’t perform that action at this time.
0 commit comments