Lucene.Net 1.9.1 Class Library

MultiFieldQueryParser Methods

The methods of the MultiFieldQueryParser class are listed below. For a complete list of MultiFieldQueryParser class members, see the MultiFieldQueryParser Members topic.

Public Static Methods

ParseOverloaded. Parses a query which searches on the fields specified. If x fields are specified, this effectively constructs:
(field1:query) (field2:query) (field3:query)...(fieldx:query)

Public Instance Methods

Clause (inherited from QueryParser) 
Conjunction (inherited from QueryParser) 
Disable_tracing (inherited from QueryParser) 
Enable_tracing (inherited from QueryParser) 
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GenerateParseException (inherited from QueryParser) 
GetAnalyzer (inherited from QueryParser) 
GetDefaultOperator (inherited from QueryParser) Gets implicit operator setting, which will be either AND_OPERATOR or OR_OPERATOR.
GetField (inherited from QueryParser) 
GetFuzzyMinSim (inherited from QueryParser) Get the minimal similarity for fuzzy queries.
GetFuzzyPrefixLength (inherited from QueryParser) Get the prefix length for fuzzy queries.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetLocale (inherited from QueryParser) Returns current locale, allowing access by subclasses.
GetLowercaseExpandedTerms (inherited from QueryParser) 
GetLowercaseWildcardTerms (inherited from QueryParser) 
GetNextToken (inherited from QueryParser) 
GetOperator (inherited from QueryParser) Gets implicit operator setting, which will be either DEFAULT_OPERATOR_AND or DEFAULT_OPERATOR_OR.
GetPhraseSlop (inherited from QueryParser) Gets the default slop for phrases.
GetToken (inherited from QueryParser) 
GetType (inherited from Object) Gets the Type of the current instance.
Modifiers (inherited from QueryParser) 
Parse (inherited from QueryParser)Overloaded. Parses a query string, returning a {@link Lucene.Net.search.Query}.
Query (inherited from QueryParser) 
ReInit (inherited from QueryParser)Overloaded.  
SetDefaultOperator (inherited from QueryParser) Sets the boolean operator of the QueryParser. In default mode (
OR_OPERATOR
) terms without any modifiers are considered optional: for example
capital of Hungary
is equal to
capital OR of OR Hungary
.
In
AND_OPERATOR
mode terms are considered to be in conjuction: the above mentioned query is parsed as
capital AND of AND Hungary
SetFuzzyMinSim (inherited from QueryParser) Set the minimum similarity for fuzzy queries. Default is 0.5f.
SetFuzzyPrefixLength (inherited from QueryParser) Set the prefix length for fuzzy queries. Default is 0.
SetLocale (inherited from QueryParser) Set locale used by date range parsing.
SetLowercaseExpandedTerms (inherited from QueryParser) Whether terms of wildcard, prefix, fuzzy and range queries are to be automatically lower-cased or not. Default is
true
.
SetLowercaseWildcardTerms (inherited from QueryParser) Whether terms of wildcard, prefix, fuzzy and range queries are to be automatically lower-cased or not. Default is
true
.
SetOperator (inherited from QueryParser) Sets the boolean operator of the QueryParser. In default mode (
DEFAULT_OPERATOR_OR
) terms without any modifiers are considered optional: for example
capital of Hungary
is equal to
capital OR of OR Hungary
.
In
DEFAULT_OPERATOR_AND
terms are considered to be in conjuction: the above mentioned query is parsed as
capital AND of AND Hungary
SetPhraseSlop (inherited from QueryParser) Sets the default slop for phrases. If zero, then exact phrase matches are required. Default value is zero.
Term (inherited from QueryParser) 
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

Protected Internal Instance Methods

AddClause (inherited from QueryParser) 
GetBooleanQuery (inherited from QueryParser)Overloaded. Factory method for generating query, given a set of clauses. By default creates a boolean query composed of clauses passed in. Can be overridden by extending classes, to modify query being returned.
GetFieldQueryOverloaded.  
GetFieldQuery (inherited from QueryParser)Overloaded. Base implementation delegates to {@link #GetFieldQuery(String,String)}. This method may be overridden, for example, to return a SpanNearQuery instead of a PhraseQuery.
GetFuzzyQueryOverloaded.  
GetPrefixQuery 
GetRangeQueryOverloaded.  
GetWildcardQuery 

See Also

MultiFieldQueryParser Class | Lucene.Net.QueryParsers Namespace