def METHOD_NAME(use_case_id: Union[UseCaseID, UseCaseKey], org_id: int, string: str) -> int:
    """
    A version of `resolve` that returns -1 for missing values.
    When using `resolve_weak` to produce a WHERE-clause, it is quite
    useful to make the WHERE-clause "impossible" with `WHERE x = -1` instead of
    explicitly handling that exception.
    """
    use_case_id = to_use_case_id(use_case_id)
    resolved = indexer.resolve(use_case_id, org_id, string)
    if resolved is None:
        return STRING_NOT_FOUND
    return resolved