Base implementation delegates to {@link #GetFieldQuery(String,String)}. This method may be overridden, for example, to return a SpanNearQuery instead of a PhraseQuery.

Namespace: Lucene.Net.QueryParsers
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
protected internal virtual Query GetFieldQuery(
	string field,
	string queryText,
	int slop
)
Visual Basic
Protected Friend Overridable Function GetFieldQuery ( _
	field As String, _
	queryText As String, _
	slop As Integer _
) As Query
Visual C++
protected public:
virtual Query^ GetFieldQuery(
	String^ field, 
	String^ queryText, 
	int slop
)

Parameters

field
Type: System..::..String

[Missing <param name="field"/> documentation for "M:Lucene.Net.QueryParsers.QueryParser.GetFieldQuery(System.String,System.String,System.Int32)"]

queryText
Type: System..::..String

[Missing <param name="queryText"/> documentation for "M:Lucene.Net.QueryParsers.QueryParser.GetFieldQuery(System.String,System.String,System.Int32)"]

slop
Type: System..::..Int32

[Missing <param name="slop"/> documentation for "M:Lucene.Net.QueryParsers.QueryParser.GetFieldQuery(System.String,System.String,System.Int32)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.QueryParsers.QueryParser.GetFieldQuery(System.String,System.String,System.Int32)"]

Exceptions

ExceptionCondition
Lucene.Net.QueryParsers..::..ParseExceptionthrow in overridden method to disallow

See Also