createPhraseQuery

fun createPhraseQuery(field: String, queryText: String, phraseSlop: Int = 0): Query?

Creates a phrase query from the query text.

This is equivalent to createPhraseQuery(field, queryText, 0)

Return

TermQuery, BooleanQuery, PhraseQuery, or MultiPhraseQuery, based on the analysis of queryText

Parameters

field

field name

queryText

text to be passed to the analyzer