PhraseQuery
Create a phrase query which will match documents that contain the given list of terms at consecutive positions in field, and at a maximum edit distance of slop. For more complicated use-cases, use PhraseQuery.Builder.
See also
.getSlop
Create a phrase query which will match documents that contain the given list of terms at consecutive positions in field.