They correspond to the \sym... math alphabets. So,
\setmathfont[range=up]{Neo Euler}
changes the \symup alphabet to Neo Euler, range=it changes \symit, and so on.
Another thing that isn’t intuitive is that this does not change \mathrm, \mathbf or \mathit, These default to your main font family. You can change them with a different command, \setmathrm. You can also pass unicode-math an option to make them aliases for \symup, \symbfup and \symit.
By default, the \sym... alphabets are for standalone math symbols, such as \symbfup{j}, and the \math... alphabets are for words in math mode, such as \mathrm{iff}. You will notice a major difference between the kerning of \mathrm{iff} and \symup{iff}!
Another thing that’s not intuitive is that \mathcal and \mathscr are, by default, set to the same alphabet, but you can override either one to make it different.
One last thing that’s not intuitive is that, as of 2021, the range= and version= options of \setmathfont are incompatible, so you can either use range= or have different math versions, but not both.
So, one of my go-to examples is the Euler identity with constants set in Neo Euler and everything else in (a clone of) Palatino:
\documentclass[varwidth, preview]{standalone}
\usepackage{mathtools}
\usepackage[math-style=ISO]{unicode-math}
\setmainfont{TeX Gyre Pagella}
\defaultfontfeatures{Scale=MatchLowercase}
\setmathfont{Asana Math}
\setmathfont[range={up/{Latin,latin,Greek,greek},
bfup/{Latin,latin,Greek,greek}},
script-features={}, sscript-features={}
]{Neo Euler}
\newcommand\upe{\symup{e}}
\newcommand\upi{\symup{i}}
\begin{document}
\begin{align}
\upe^{\upi x} &= \cos{x} + \upi \sin{x} \
\upe^{\upi \uppi} + 1 &= 0
\end{align}
\end{document}

In the above example, \symup{i}, \symup{e} and \symup{\pi} (or \uppi) are all changed to Neo Euler, but the the operators sin and cos remain in \mathrm, and x and the digits are from the main math font.