Compounds responsible for the aroma of cannabis and many other plants may offer a surprising new way to relieve chronic pain. Researchers found that several cannabis-derived terpenes significantly reduced pain in mouse models of fibromyalgia and post-surgical pain, with one terpene, geraniol, showing especially strong effects. Unlike THC, these compounds are not associated with psychoactive effects, making them a potentially attractive alternative for pain treatment.
I’m not sure how you can objectively say the high is what gives pain relief. The two are intrinsically linked for you, and you’d be unable to know if it’s one or two chemical processes happening in your body at the same time. It’s just impossible to know.