Method CreateBooleanQuery
CreateBooleanQuery(String, String)
Creates a boolean query from the query text.
This is equivalent to CreateBooleanQuery(field, queryText, Occur.SHOULD)
Declaration
public virtual Query CreateBooleanQuery(string field, string queryText)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | Field name. |
System.String | queryText | Text to be passed to the analyzer. |
Returns
Type | Description |
---|---|
Query | TermQuery or BooleanQuery, based on the analysis
of |
CreateBooleanQuery(String, String, Occur)
Creates a boolean query from the query text.
Declaration
public virtual Query CreateBooleanQuery(string field, string queryText, Occur operator)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | Field name |
System.String | queryText | Text to be passed to the analyzer. |
Occur | operator | Operator used for clauses between analyzer tokens. |
Returns
Type | Description |
---|---|
Query | TermQuery or BooleanQuery, based on the analysis
of |