Click or drag to resize

AssetContentQueryParser Class


Inheritance Hierarchy
SystemObject
  QueryParserConstants
    QueryParser
      Ingeniux.CMS.Assets.SearchAssetContentQueryParser

Namespace:  Ingeniux.CMS.Assets.Search
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
public class AssetContentQueryParser : QueryParser

The AssetContentQueryParser type exposes the following members.

Constructors
  NameDescription
Public methodAssetContentQueryParser
Initializes a new instance of the AssetContentQueryParser class
Top
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
Methods
  NameDescription
Public methodClause (Inherited from QueryParser.)
Public methodConjunction (Inherited from QueryParser.)
Public methodDisable_tracing
Disable tracing.
(Inherited from QueryParser.)
Public methodEnable_tracing
Enable tracing.
(Inherited from QueryParser.)
Public methodGenerateParseException
Generate ParseException.
(Inherited from QueryParser.)
Public methodStatic memberGetCJKChars
Public methodgetDateResolution
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.)
Public methodGetNextToken
Get the next Token.
(Inherited from QueryParser.)
Public methodgetToken
Get the specific Token.
(Inherited from QueryParser.)
Public methodStatic memberIsCJKTerm
Public methodModifiers (Inherited from QueryParser.)
Public methodParse
Parses original query using the standard Lucene QueryParser. Synonmys defined in the configuration are applied to the resulting query.
(Overrides QueryParser.Parse(String).)
Public methodQuery (Inherited from QueryParser.)
Public methodReInit(ICharStream)
Reinitialise.
(Inherited from QueryParser.)
Public methodReInit(QueryParserTokenManager)
Reinitialise.
(Inherited from QueryParser.)
Public methodSetDateResolution(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.)
Public methodSetDateResolution(String, Resolution)
Sets the date resolution used by RangeQueries for a specific field.
(Inherited from QueryParser.)
Public methodTerm (Inherited from QueryParser.)
Public methodTopLevelQuery (Inherited from QueryParser.)
Public methodWildcardQuery
Top
Fields
  NameDescription
Public fieldjj_nt (Inherited from QueryParser.)
Public fieldtoken (Inherited from QueryParser.)
Public fieldtoken_source (Inherited from QueryParser.)
Top
See Also