If you set considerKnownItems
to true
in recommend()
, then it will not exclude any items at all from the results. (Similarly, the raw REST API has a parameter "...&considerKnownItems=true...
)
Then, you can perform your own custom filtering one of two ways, by either implementing CandidateFilter
or RescorerProvider
. See http://myrrix.com/tuning-quality/. CandidateFilter
may be faster and more appropriate for this case, but RescorerProvider
gives you a hook to do more customization later if desired.
Yes, setting any value for a user-item pair excludes it from recommendations by default.