Music refuses to search iTunes or Apple Music - a solution
If you are getting this infuriating result, where any query via the Search box only produces results from your own library, try this. It worked for me and is subtle, silly, and simple.
When you enter the search term, say Bach, in the search box and press enter, look closely to the right of the search box, or directly above the [showing results for "Bach"] line - do you see a left arrow <?
Click it.
Now look at the right hand side of the results - there should be 3 tabs -
[ Your Library ] [ iTunes Store ] [ Apple Music ] (the order may be different for you)
Clicking each of these will give appropriate results.
My OS is Monterey, and Music is v 1.2.5.7
iMac 21.5″, macOS 12.7