This is the one which works: for $n score $s in $doc//*[text() contains text {'pissarro', 'gauguin'} ]
Please note that the quoted query will either choose Pissarro or Gaugin; see e.g.:
"A" contains text { "A", "B" }
You'll have to append the "all" modifier to get sure that all artist names will be returned.
Christian