Click or drag to resize
AbstractSearchSyntaxHelper Class
Helper methods for search condition syntax
Inheritance Hierarchy

Namespace: CMS.Search
Assembly: CMS.Search (in CMS.Search.dll) Version: 8.2.23
Syntax
C#
public abstract class AbstractSearchSyntaxHelper : ISearchSyntaxHelper

The AbstractSearchSyntaxHelper type exposes the following members.

Constructors
Methods
  NameDescription
Public methodAddSearchCondition
Adds the given search condition to the existing condition
Public methodCombineSearchCondition
Returns string with combined search index conditions.
Public methodEscapeKeyWords
Escapes the key words to be searched
Public methodExpandWithSynonyms
Expands given search expression with synonyms. If the data base of synonyms for given language is not found, searchExpression is returned without any modifications.
Protected methodFieldNameEvaluator
Evaluator method, converts lowercase "to" to uppercase.
Protected methodFinalizeSearchCondition
Finalizes the search query to make sure that its syntax is consistent and valid
Protected methodGetClassNameCondition
Gets the search condition for a given list of class names
Protected methodGetCultureCondition
Gets the search condition for the given culture
Public methodGetExactPhraseCondition
Gets the exact phrase condition from the given phrase
Protected methodGetExtraConditions
Gets the extra conditions based on the given expression
Public methodGetFieldCondition(String, Object, NullableBoolean)
Gets the search condition for the given field
Public methodGetFieldCondition(String, Object, Object, NullableBoolean)
Gets the field condition for a range of values
Public methodGetFilterCondition
Returns condition for search filter row
Public methodGetGroup
Groups the expressions
Protected methodGetKeyWordsCondition
Gets the search condition for the given key words
Public methodGetNotCondition
Gets a not (except) condition from the given condition
Public methodGetRange
Gets the range expression
Public methodGetRequiredCondition
Gets a required condition from the given condition
Public methodIsEmptyCondition
Returns true if the given search condition is empty
Public methodProcessSearchKeywords
Returns modified keywords string based on searchOptions.
Protected methodSplitKeyWords
Splits the given list of key words separated by space
Public methodTransformToFuzzySearch
Adds ~ signs to each term to force fuzzy search.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Properties
  NameDescription
Protected propertyFieldNameSyntaxRegex
Gets the regular expression for field name.
Top
See Also