My content
node includes a verified
checkbox that's marked by a human reviewer who then also enters a date. The node is verified only when the box is checked and the date is entered. A content
node may be published before it is verified.
How can I keep an unverified content node from appearing in search API results?
One solution is to add a search API exclude entity
field to the content
node and to set the value of the exclude field in a presave hook based on the verified
checkbox and date. This isn't difficult, but it seems there should be a more straightforward way of accomplishing what's needed.
I've looked at modules, but those I've seen don't seem to fit the need. I imagine I'm just missing something obvious, but what is it?
I don't think it's relevant, but I'll mention that I'm using Solr search.