Interface ICommonQueryParserConfiguration
Configuration options common across queryparser implementations.
Assembly: Lucene.Net.QueryParser.dll
Syntax
public interface ICommonQueryParserConfiguration
Properties
Name | Description |
---|---|
AllowLeadingWildcard | Set to
When set, Default: false. |
Analyzer | |
EnablePositionIncrements | Set to When set, result phrase and multi-phrase queries will be aware of position increments. Useful when e.g. a StopFilter increases the position increment of the token that follows an omitted token. Default: false. |
FuzzyMinSim | Get the minimal similarity for fuzzy queries. |
FuzzyPrefixLength | Get or Set the prefix length for fuzzy queries. Default is 0. |
Locale | Get or Set locale used by date range parsing. |
LowercaseExpandedTerms | Whether terms of multi-term queries (e.g., wildcard,
prefix, fuzzy and range) should be automatically
lower-cased or not. Default is |
MultiTermRewriteMethod | By default, it uses CONSTANT_SCORE_AUTO_REWRITE_DEFAULT when creating a prefix, wildcard and range queries. This implementation is generally preferable because it a) Runs faster b) Does not have the scarcity of terms unduly influence score c) avoids any exception due to too many listeners. However, if your application really needs to use the old-fashioned boolean queries expansion rewriting and the above points are not relevant then use this change the rewrite method. |
PhraseSlop | Gets or Sets the default slop for phrases. If zero, then exact phrase matches are required. Default value is zero. |
TimeZone | Gets or Sets the time zone. |
Methods
Name | Description |
---|---|
SetDateResolution(DateTools.Resolution) | Sets the default DateTools.Resolution used for certain field when no DateTools.Resolution is defined for this field. |