The QueryParser type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddClause(ArrayList, Int32, Int32, Query) | Obsolete. | |
AddClause(IList, Int32, Int32, Query) | ||
Clause | ||
Conjunction | ||
Disable_tracing | Disable tracing. | |
Enable_tracing | Enable tracing. | |
Equals | (Inherited from Object.) | |
Escape | Returns a String where those characters that QueryParser
expects to be escaped are escaped by a preceding CopyC# \ | |
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. | |
GetAllowLeadingWildcard | ||
GetAnalyzer | ||
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.
| |
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.
| |
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.
| |
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.
| |
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.
| |
GetDefaultOperator | Gets implicit operator setting, which will be either AND_OPERATOR
or OR_OPERATOR.
| |
GetEnablePositionIncrements | ||
GetField | ||
GetFieldQuery(String, String) | ||
GetFieldQuery(String, String, Int32) | Base implementation delegates to {@link #GetFieldQuery(String,String)}.
This method may be overridden, for example, to return
a SpanNearQuery instead of a PhraseQuery.
| |
GetFuzzyMinSim | Get the minimal similarity for fuzzy queries. | |
GetFuzzyPrefixLength | Get the prefix length for fuzzy queries. | |
GetFuzzyQuery | Factory method for generating a query (similar to
{@link #getWildcardQuery}). Called when parser parses
an input term token that has the fuzzy suffix (~) appended.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetLocale | Returns current locale, allowing access by subclasses. | |
GetLowercaseExpandedTerms | ||
GetMultiTermRewriteMethod | ||
GetNextToken | Get the next Token. | |
GetPhraseSlop | Gets the default slop for phrases. | |
GetPrefixQuery | Factory method for generating a query (similar to
{@link #getWildcardQuery}). Called when parser parses an input term
token that uses prefix notation; that is, contains a single '*' wildcard
character as its last character. Since this is a special case
of generic wildcard term, and such a query can be optimized easily,
this usually results in a different query object.
Depending on settings, a prefix term may be lower-cased
automatically. It will not go through the default Analyzer,
however, since normal Analyzers are unlikely to work properly
with wildcard templates.
Can be overridden by extending classes, to provide custom handling for
wild card queries, which may be necessary due to missing analyzer calls.
| |
GetRangeCollator | ||
GetRangeQuery | ||
GetToken | Get the specific Token. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUseOldRangeQuery | Obsolete. | |
GetWildcardQuery | Factory method for generating a query. Called when parser
parses an input term token that contains one or more wildcard
characters (? and *), but is not a prefix term token (one
that has just a single * character at the end)
Depending on settings, prefix term may be lower-cased
automatically. It will not go through the default Analyzer,
however, since normal Analyzers are unlikely to work properly
with wildcard templates.
Can be overridden by extending classes, to provide custom handling for
wildcard queries, which may be necessary due to missing analyzer calls.
| |
Main | Command line tool to test QueryParser, using {@link Lucene.Net.Analysis.SimpleAnalyzer}.
Usage: CopyC# java Lucene.Net.QueryParsers.QueryParser <input> | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Modifiers | ||
NewBooleanClause | Builds a new BooleanClause instance | |
NewBooleanQuery | Builds a new BooleanQuery instance | |
NewFuzzyQuery | Builds a new FuzzyQuery instance | |
NewMatchAllDocsQuery | Builds a new MatchAllDocsQuery instance | |
NewMultiPhraseQuery | Builds a new MultiPhraseQuery instance | |
NewPhraseQuery | Builds a new PhraseQuery instance | |
NewPrefixQuery | Builds a new PrefixQuery instance | |
NewRangeQuery | Builds a new TermRangeQuery instance | |
NewTermQuery | Builds a new TermQuery instance | |
NewWildcardQuery | Builds a new WildcardQuery instance | |
Parse | Parses a query string, returning a {@link Lucene.Net.Search.Query}. | |
Query | ||
ReInit(CharStream) | Reinitialise. | |
ReInit(QueryParserTokenManager) | Reinitialise. | |
SetAllowLeadingWildcard | Set to 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)}.
| |
SetDateResolution(String, DateTools..::..Resolution) | Sets the date resolution used by RangeQueries for a specific field.
| |
SetDefaultOperator | Sets the boolean operator of the QueryParser.
In default mode ( 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 CopyC# true | |
SetFuzzyMinSim | Set the minimum similarity for fuzzy queries.
Default is 0.5f.
| |
SetFuzzyPrefixLength | Set the prefix length for fuzzy queries. Default is 0. | |
SetLocale | Set locale used by date range parsing. | |
SetLowercaseExpandedTerms | Whether terms of wildcard, prefix, fuzzy and range queries are to be automatically
lower-cased or not. Default is 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.
| |
SetPhraseSlop | Sets the default slop for phrases. If zero, then exact phrase matches
are required. Default value is zero.
| |
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.
| |
SetUseOldRangeQuery | Obsolete. | |
Term | ||
TopLevelQuery | ||
ToString | (Inherited from Object.) |