I'm trying to implement a component in AEM where it will show articles/products based on previous search. It's more of a functionality like recommended videos that come in YouTube.
As of now, the functionality is set to fetch the articles based on the inputs provided in the dialog so that it can query the pipeline accordingly and get the data. But going forward we would like to implement something like auto-generated articles that would come up in the component and the results should be based on what the user has previously searched across the site. If there's no match we want to display the closest results possible.
If someone could help with insights/ideas on how we can implement the same. Thanks!