I would say that it depends which search engine you are using.
With Watson Explorer (old Content Analytics) it is possible to create custom crawler - but unfortunately WEX doesn't support content based retrieval (CBR), so it cannot be used in Filenet query.
I would bet that with Elasticsearch or OpenSearch it is possible, but you have to find expert from this domain (and customer has to have latest FN version - 5.5.12)
But with "default" Content Search services I think no such customization is supported, although Lucene (it is based on) may allow it.
Btw. if you have control over the Filenet QUERY (with CBR) than simply add where condition into it, filtering out those documents that you don't want to return (index) - if CRB is used in the query. Or response filter in ICN.
------------------------------
Marcel Kostal
------------------------------