Creates a MultiFieldQueryParser.
It will, when parse(String query) is called, construct a query like this
(assuming the query consists of two terms and you specify the two fields
CopyC# and
CopyC#):
CopyC#
When setDefaultOperator(AND_OPERATOR) is set, the result will be:
CopyC#
In other words, all the query's terms must appear, but it doesn't matter
in what fields they appear.
Namespace: Lucene.Net.QueryParsers
title

body

(title:term1 body:term1) (title:term2 body:term2)

+(title:term1 body:term1) +(title:term2 body:term2)
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public MultiFieldQueryParser( Version matchVersion, string[] fields, Analyzer analyzer ) |
Visual Basic |
---|
Public Sub New ( _ matchVersion As Version, _ fields As String(), _ analyzer As Analyzer _ ) |
Visual C++ |
---|
public: MultiFieldQueryParser( Version^ matchVersion, array<String^>^ fields, Analyzer^ analyzer ) |
Parameters
- matchVersion
- Type: Lucene.Net.Util..::..Version
[Missing <param name="matchVersion"/> documentation for "M:Lucene.Net.QueryParsers.MultiFieldQueryParser.#ctor(Lucene.Net.Util.Version,System.String[],Lucene.Net.Analysis.Analyzer)"]
- fields
- Type: array<System..::..String>[]()[][]
[Missing <param name="fields"/> documentation for "M:Lucene.Net.QueryParsers.MultiFieldQueryParser.#ctor(Lucene.Net.Util.Version,System.String[],Lucene.Net.Analysis.Analyzer)"]
- analyzer
- Type: Lucene.Net.Analysis..::..Analyzer
[Missing <param name="analyzer"/> documentation for "M:Lucene.Net.QueryParsers.MultiFieldQueryParser.#ctor(Lucene.Net.Util.Version,System.String[],Lucene.Net.Analysis.Analyzer)"]