I don't see any way around storing which recommendations have been delivered to each user. Sounds like a separate collection with the unique ID created from the combination of the user ID and the recommendation ID (with the IDs also available as a separate, searchable and returnable fields).
You could then use a so-called "join" query to exclude any recommendations in the other collection. -----Original Message----- From: amid [mailto:a...@donanza.com] Sent: Wednesday, June 10, 2015 1:27 PM To: solr-user@lucene.apache.org Subject: The best way to exclude "seen" results from search queries Hi, We have a solr index with ~1M documents. We want to give the ability to our users to filter results from queries - meaning they will not shown again for any query of this specific user (we currently have 10K users). You can think of a scenario like a "recommendation engine" which you don't want to give recommendation more than once for each user. What is the best way to implement this feature (Performance & Memory)? Thanks, Ami -- View this message in context: http://lucene.472066.n3.nabble.com/The-best-way-to-exclude-seen-results-from-search-queries-tp4211022.html Sent from the Solr - User mailing list archive at Nabble.com. ************************************************************************* This e-mail may contain confidential or privileged information. If you are not the intended recipient, please notify the sender immediately and then delete it. TIAA-CREF *************************************************************************