We need an endpoint search client that can be customized to implement user-defined search workflows like the one you described, with dedupe of results and context-specific ranking. Perhaps a customized Recoll instance, https://www.lesbonscomptes.com/recoll/.