NEAR will search for two terms in close proximity such as:
John Smith
The indexer will create two separate terms:
John
Smith
So searching for 'John NEAR Smith' will work.
Your previous question was about an email address:
john.smith@gmail.com
In that situation the indexer just creates one term:
john.smith@gmail.com
'Smith' does not exist as a separate term.