Facet based on id

I have a collection of documents and want to select several of them so that I end up with a list of IDs (I don’t know these IDs beforehand). Then I want to “save” that selection so that it appears as a facet (allowing the user to revisit the selection). So essentially “tag” some IDs as “selection1” and make it visible on the UI as a facet.
What is the recommended way to implement this?

Hi @lmjhp,

This behaviour can be easily implemented by adding the _tags attribute to your records. You can read more about filtering by tags here.