Proximity search with more than two terms... What happens?

Hello,
I have a simple doubt about the use of Lucene's proximity operator. For example "term1 term2"~10 would search for documents with the occurrence of term1 and term2 10 terms apart, in any direction. But what happens with "term1 term2 term3"~10? does Lucene search for both temr2 and term3 in relation to term1? Or any term in relation to any other term? Or what?
The examples I've found in the documentation normally explains this operator with only two terms...
Thank you!

To whom may also interested abou this, I've found a good explanation in Stackoverflow:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.