The MultiFieldQueryParser type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddClause(ArrayList, Int32, Int32, Query) | Obsolete. (Inherited from QueryParser.) | |
AddClause(IList, Int32, Int32, Query) | (Inherited from QueryParser.) | |
Clause | (Inherited from QueryParser.) | |
Conjunction | (Inherited from QueryParser.) | |
Disable_tracing | Disable tracing. (Inherited from QueryParser.) | |
Enable_tracing | Enable tracing. (Inherited from QueryParser.) | |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GenerateParseException | Generate ParseException. (Inherited from QueryParser.) | |
GetAllowLeadingWildcard | (Inherited from QueryParser.) | |
GetAnalyzer | (Inherited from QueryParser.) | |
GetBooleanQuery(ArrayList) | Obsolete. 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.
(Inherited from QueryParser.) | |
GetBooleanQuery(IList) | 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.
(Inherited from QueryParser.) | |
GetBooleanQuery(ArrayList, Boolean) | Obsolete. 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.
(Inherited from QueryParser.) | |
GetBooleanQuery(IList, Boolean) | 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.
(Inherited from QueryParser.) | |
GetDateResolution | Returns the date resolution that is used by RangeQueries for the given field.
Returns null, if no default or field specific date resolution has been set
for the given field.
(Inherited from QueryParser.) | |
GetDefaultOperator | Gets implicit operator setting, which will be either AND_OPERATOR
or OR_OPERATOR.
(Inherited from QueryParser.) | |
GetEnablePositionIncrements | (Inherited from QueryParser.) | |
GetField | (Inherited from QueryParser.) | |
GetFieldQuery(String, String) | (Overrides QueryParser..::..GetFieldQuery(String, String).) | |
GetFieldQuery(String, String, Int32) | (Overrides QueryParser..::..GetFieldQuery(String, String, Int32).) | |
GetFuzzyMinSim | Get the minimal similarity for fuzzy queries. (Inherited from QueryParser.) | |
GetFuzzyPrefixLength | Get the prefix length for fuzzy queries. (Inherited from QueryParser.) | |
GetFuzzyQuery | (Overrides QueryParser..::..GetFuzzyQuery(String, String, Single).) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetLocale | Returns current locale, allowing access by subclasses. (Inherited from QueryParser.) | |
GetLowercaseExpandedTerms | (Inherited from QueryParser.) | |
GetMultiTermRewriteMethod | (Inherited from QueryParser.) | |
GetNextToken | Get the next Token. (Inherited from QueryParser.) | |
GetPhraseSlop | Gets the default slop for phrases. (Inherited from QueryParser.) | |
GetPrefixQuery | (Overrides QueryParser..::..GetPrefixQuery(String, String).) | |
GetRangeCollator | (Inherited from QueryParser.) | |
GetRangeQuery | (Overrides QueryParser..::..GetRangeQuery(String, String, String, Boolean).) | |
GetToken | Get the specific Token. (Inherited from QueryParser.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUseOldRangeQuery | Obsolete. (Inherited from QueryParser.) | |
GetWildcardQuery | (Overrides QueryParser..::..GetWildcardQuery(String, String).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Modifiers | (Inherited from QueryParser.) | |
NewBooleanClause | Builds a new BooleanClause instance (Inherited from QueryParser.) | |
NewBooleanQuery | Builds a new BooleanQuery instance (Inherited from QueryParser.) | |
NewFuzzyQuery | Builds a new FuzzyQuery instance (Inherited from QueryParser.) | |
NewMatchAllDocsQuery | Builds a new MatchAllDocsQuery instance (Inherited from QueryParser.) | |
NewMultiPhraseQuery | Builds a new MultiPhraseQuery instance (Inherited from QueryParser.) | |
NewPhraseQuery | Builds a new PhraseQuery instance (Inherited from QueryParser.) | |
NewPrefixQuery | Builds a new PrefixQuery instance (Inherited from QueryParser.) | |
NewRangeQuery | Builds a new TermRangeQuery instance (Inherited from QueryParser.) | |
NewTermQuery | Builds a new TermQuery instance (Inherited from QueryParser.) | |
NewWildcardQuery | Builds a new WildcardQuery instance (Inherited from QueryParser.) | |
Parse(String) | Parses a query string, returning a {@link Lucene.Net.Search.Query}. (Inherited from QueryParser.) | |
Parse(array<String>[]()[][], array<String>[]()[][], Analyzer) | Obsolete. Parses a query which searches on the fields specified.
If x fields are specified, this effectively constructs:
<code> (field1:query1) (field2:query2) (field3:query3)...(fieldx:queryx) </code> | |
Parse(String, array<String>[]()[][], array<BooleanClause..::..Occur>[]()[][], Analyzer) | Obsolete. Parses a query, searching on the fields specified.
Use this if you need to specify certain fields as required,
and others as prohibited.
Usage:
The code above would construct a query:
| |
Parse(array<String>[]()[][], array<String>[]()[][], array<BooleanClause..::..Occur>[]()[][], Analyzer) | Obsolete. Parses a query, searching on the fields specified.
Use this if you need to specify certain fields as required,
and others as prohibited.
Usage:
The code above would construct a query:
| |
Parse(Version, array<String>[]()[][], array<String>[]()[][], Analyzer) | Parses a query which searches on the fields specified.
If x fields are specified, this effectively constructs:
<code> (field1:query1) (field2:query2) (field3:query3)...(fieldx:queryx) </code> | |
Parse(Version, String, array<String>[]()[][], array<BooleanClause..::..Occur>[]()[][], Analyzer) | Parses a query, searching on the fields specified. Use this if you need
to specify certain fields as required, and others as prohibited.
Usage: <code> String[] fields = {"filename", "contents", "description"}; BooleanClause.Occur[] flags = {BooleanClause.Occur.SHOULD, BooleanClause.Occur.MUST, BooleanClause.Occur.MUST_NOT}; MultiFieldQueryParser.parse("query", fields, flags, analyzer); </code>The code above would construct a query: <code> (filename:query) +(contents:query) -(description:query) </code> | |
Parse(Version, array<String>[]()[][], array<String>[]()[][], array<BooleanClause..::..Occur>[]()[][], Analyzer) | Parses a query, searching on the fields specified. Use this if you need
to specify certain fields as required, and others as prohibited.
Usage: <code> String[] query = {"query1", "query2", "query3"}; String[] fields = {"filename", "contents", "description"}; BooleanClause.Occur[] flags = {BooleanClause.Occur.SHOULD, BooleanClause.Occur.MUST, BooleanClause.Occur.MUST_NOT}; MultiFieldQueryParser.parse(query, fields, flags, analyzer); </code>The code above would construct a query: <code> (filename:query1) +(contents:query2) -(description:query3) </code> | |
Query | (Inherited from QueryParser.) | |
ReInit(CharStream) | Reinitialise. (Inherited from QueryParser.) | |
ReInit(QueryParserTokenManager) | Reinitialise. (Inherited from QueryParser.) | |
SetAllowLeadingWildcard | Set to (Inherited from QueryParser.)CopyC# true CopyC# * CopyC# ? | |
SetDateResolution(DateTools..::..Resolution) | Sets the default date resolution used by RangeQueries for fields for which no
specific date resolutions has been set. Field specific resolutions can be set
with {@link #SetDateResolution(String, DateTools.Resolution)}.
(Inherited from QueryParser.) | |
SetDateResolution(String, DateTools..::..Resolution) | Sets the date resolution used by RangeQueries for a specific field.
(Inherited from QueryParser.) | |
SetDefaultOperator | Sets the boolean operator of the QueryParser.
In default mode ( (Inherited from QueryParser.)CopyC# OR_OPERATOR CopyC# capital of Hungary CopyC# capital OR of OR Hungary In CopyC# AND_OPERATOR CopyC# capital AND of AND Hungary | |
SetEnablePositionIncrements | Set to (Inherited from QueryParser.)CopyC# true | |
SetFuzzyMinSim | Set the minimum similarity for fuzzy queries.
Default is 0.5f.
(Inherited from QueryParser.) | |
SetFuzzyPrefixLength | Set the prefix length for fuzzy queries. Default is 0. (Inherited from QueryParser.) | |
SetLocale | Set locale used by date range parsing. (Inherited from QueryParser.) | |
SetLowercaseExpandedTerms | Whether terms of wildcard, prefix, fuzzy and range queries are to be automatically
lower-cased or not. Default is (Inherited from QueryParser.)CopyC# true | |
SetMultiTermRewriteMethod | By default QueryParser uses {@link MultiTermQuery#CONSTANT_SCORE_AUTO_REWRITE_DEFAULT}
when creating a PrefixQuery, WildcardQuery or RangeQuery. This implementation is generally preferable because it
a) Runs faster b) Does not have the scarcity of terms unduly influence score
c) avoids any "TooManyBooleanClauses" exception.
However, if your application really needs to use the
old-fashioned BooleanQuery expansion rewriting and the above
points are not relevant then use this to change
the rewrite method.
(Inherited from QueryParser.) | |
SetPhraseSlop | Sets the default slop for phrases. If zero, then exact phrase matches
are required. Default value is zero.
(Inherited from QueryParser.) | |
SetRangeCollator | Sets the collator used to determine index term inclusion in ranges
for RangeQuerys.
WARNING: Setting the rangeCollator to a non-null
collator using this method will cause every single index Term in the
Field referenced by lowerTerm and/or upperTerm to be examined.
Depending on the number of index Terms in this Field, the operation could
be very slow.
(Inherited from QueryParser.) | |
SetUseOldRangeQuery | Obsolete. (Inherited from QueryParser.) | |
Term | (Inherited from QueryParser.) | |
TopLevelQuery | (Inherited from QueryParser.) | |
ToString | (Inherited from Object.) |