createBooleanQuery

fun createBooleanQuery(field: String, queryText: String, operator: BooleanClause.Occur = BooleanClause.Occur.SHOULD): Query?

Creates a boolean query from the query text.

This is equivalent to createBooleanQuery(field, queryText, Occur.SHOULD)

Return

TermQuery or BooleanQuery, based on the analysis of queryText

Parameters

field

field name

queryText

text to be passed to the analyzer