Click or drag to resize

AssetContentQueryParser Properties


The AssetContentQueryParser type exposes the following members.

Properties
  NameDescription
Public propertyAllowLeadingWildcard
Set to true to allow leading wildcard characters.

When set, * or ? are allowed as the first character of a PrefixQuery and WildcardQuery. Note that this can produce very slow queries on big indexes.

Default: false.

(Inherited from QueryParser.)
Public propertyAnalyzer (Inherited from QueryParser.)
Public propertyDefaultOperator
Gets or 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 conjunction: the above mentioned query is parsed as capital AND of AND Hungary
(Inherited from QueryParser.)
Public propertyEnablePositionIncrements
Set to true to enable position increments in result query.

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.

(Inherited from QueryParser.)
Public propertyField (Inherited from QueryParser.)
Public propertyFuzzyMinSim
Gets or sets the minimal similarity for fuzzy queries. Default is 0.5f.
(Inherited from QueryParser.)
Public propertyFuzzyPrefixLength
Gets or sets the prefix length for fuzzy queries.
(Inherited from QueryParser.)
Public propertyLocale
Gets or sets locale used by date range parsing.
(Inherited from QueryParser.)
Public propertyLowercaseExpandedTerms
Whether terms of wildcard, prefix, fuzzy and range queries are to be automatically lower-cased or not. Default is true.
(Inherited from QueryParser.)
Public propertyMultiTermRewriteMethod
By default QueryParser uses 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.)
Public propertyPhraseSlop
Gets or sets the default slop for phrases. If zero, then exact phrase matches are required. Default value is zero.
(Inherited from QueryParser.)
Public propertyRangeCollator
Gets or 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.)
Top
See Also