DotLucene 1.4 API Documentation |

# QueryParser.GetFieldQuery Method (String, Analyzer, String, Int32)

Base implementation delegates to {@link .GetFieldQuery(String, Analyzer, String)}. This method may be overwritten, for example, to return a SpanNearQuery instead of a PhraseQuery. Note that parameter analyzer is ignored. Calls inside the parser always use class member analyser. This method will be deprecated and substituted by {@link .GetFieldQuery(String, String, int)} in future versions of Lucene. Currently overwriting either of these methods works.

protected internal virtual Query GetFieldQuery(
string field,
Analyzer analyzer,
string queryText,
int slop
);

#### Exceptions

Exception Type | Condition
--- | ---
| ParseException throw in overridden method to disallow

#### See Also

QueryParser Class | Lucene.Net.QueryParsers Namespace | QueryParser.GetFieldQuery Overload List