The ~ syntax can only be applied to a single phrase, i.e. "the greate
one"~3. This sets the slop allowed for the phrase to be 3. The defintion of
slop can be found by searching the archive, but it will not easily allow for
what you are looking for. The Lucene query language has not yet recived Spa
According to the documentation for Lucene's Query Parser Syntax, the
tilde operator provides a proximity search.
For instance, "Harry Hallows"~6 should match the text 'Harry Potter
and the Deathly Hallows'.
And while this is fine for two token phrases, I was wondering if it
worked well for subex