Reinstate reverted MR: Add fork and archive filters to search API

Background

Add fork and archive filters to search API (!211973 - merged) was reverted in Revert "Merge branch '493281-add-fork-archived-... (!215382 - merged) due to an incident.

This issue is to reinstate the work after addressing the root cause.

Proposal