0

I'm setting up Search API Solr to make a user search on my site. On this site, when a user account is cancelled, we keep the data but block the account (set the status to non-active). This is necessary to prevent abuse of the system, but I want to eliminate the risk that data from these accounts would be exposed in Solr search, so I am looking for a way to index only active users.

I've been digging around but couldn't find any way to configure the index to not add blocked users. How can I do this?

0

It turns out that Search API has a built-in filter for excluding unpublished nodes, but not users.

So here's a patch.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.