Code search does not allow you to exclude projects and or repositories. The documentation states that if multiple modifiers are in a query they are implicitly combined using "AND". No such functionality exists to exclude or use "NOT" with modifiers if you are wanting to exclude a project or repository from your text search.
<more information needed - why is this a problem?>
Allow code search to exclude projects and or repositories. Example queries below: