Method CreateMinShouldMatchQuery
CreateMinShouldMatchQuery(String, String, Single)
Creates a minimum-should-match query from the query text.
Declaration
public virtual Query CreateMinShouldMatchQuery(string field, string queryText, float fraction)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | Field name. |
System.String | queryText | Text to be passed to the analyzer. |
System.Single | fraction | of query terms |
Returns
Type | Description |
---|---|
Query | TermQuery or BooleanQuery, based on the analysis
of |