New 4.16 API allow repo_name, or repo_group_name scope filtering imho worth to add this.
Please see the search() implementation: https://code.rhodecode.com/rhodecode-enterprise-ce/files/c75dd264c5f748c55e73391632ccd00a07f03f99/rhodecode/lib/index/whoosh.py#L102