I am reading the Lucene in Action book and I do not understand the multi-term phrases part.
The following text is indexed:
the quick brown fox jumped over the lazy dog
And then you add the following terms to the PhraseQuery
: quick jumped lazy with a slop equal 4. That results in a match, but I don't understand how that happens. How do you calculate the number of moves when there are multiple terms? I don't understand how they do it.
The same with the terms lazy jumped quick with slop equal 8.