mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-31 04:25:29 +00:00
fix(gms): Fixed Recently Viewed section for users with '@' in the URN. (#8754)
Co-authored-by: pi-skrydalewicz-ext <pi.skrydalewicz.ext@adevinta.com> Co-authored-by: amanda-her <912amandahernando@gmail.com>
This commit is contained in:
parent
90bceb77a4
commit
794eb0324a
@ -122,7 +122,7 @@ public class RecentlyViewedSource implements RecommendationSource {
|
||||
BoolQueryBuilder query = QueryBuilders.boolQuery();
|
||||
// Filter for the entity view events of the user requesting recommendation
|
||||
query.must(
|
||||
QueryBuilders.termQuery(ESUtils.toKeywordField(DataHubUsageEventConstants.ACTOR_URN, true), userUrn.toString()));
|
||||
QueryBuilders.termQuery(ESUtils.toKeywordField(DataHubUsageEventConstants.ACTOR_URN, false), userUrn.toString()));
|
||||
query.must(
|
||||
QueryBuilders.termQuery(DataHubUsageEventConstants.TYPE, DataHubUsageEventType.ENTITY_VIEW_EVENT.getType()));
|
||||
source.query(query);
|
||||
|
Loading…
x
Reference in New Issue
Block a user