PhraseQuery

constructor(slop: Int, field: String, vararg terms: String?)
constructor(slop: Int, field: String, vararg terms: BytesRef?)

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


constructor(field: String, vararg terms: String?)
constructor(field: String, vararg terms: BytesRef?)

Create a phrase query which will match documents that contain the given list of terms at consecutive positions in field.