Method CreateFieldQuery
CreateFieldQuery(Analyzer, Occur, String, String, Boolean, Int32)
Creates a query from the analysis chain.
Expert: this is more useful for subclasses such as queryparsers. If using this class directly, just use CreateBooleanQuery(String, String) and CreatePhraseQuery(String, String).
Declaration
protected Query CreateFieldQuery(Analyzer analyzer, Occur operator, string field, string queryText, bool quoted, int phraseSlop)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | analyzer | Analyzer used for this query. |
Occur | operator | Default boolean operator used for this query. |
System.String | field | Field to create queries against. |
System.String | queryText | Text to be passed to the analysis chain. |
System.Boolean | quoted |
|
System.Int32 | phraseSlop | Slop factor for phrase/multiphrase queries. |
Returns
Type | Description |
---|---|
Query |