createMinShouldMatchQuery

fun createMinShouldMatchQuery(field: String, queryText: String, fraction: Float): Query?

Creates a minimum-should-match query from the query text.

Return

TermQuery or BooleanQuery, based on the analysis of queryText

Parameters

field

field name

queryText

text to be passed to the analyzer

fraction

of query terms [0..1] that should match