Boosting negatively (or demoting) documents based on an array of values for a given field

Can anyone help with a query to do a negative boost on documents based on an array of values that i have when creating the query postData?
Example:

  1. A user has viewed 100 images and those 100 image id's are stored in an array somewhere else.
  2. I now want to create a query that retrieves a set of documents that will include documents with these id's however they're demoted down in the result set

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.