fixed to enable to search other than event or topic id (fixes #2597)