The SearchQuery type exposes the following members.

Constructors

  NameDescription
Public methodSearchQuery
DotNetNuke.Services.Search.Entities.SearchQuery

Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

Extension Methods

  NameDescription
Public Extension MethodToJson
Extension method on object that serializes the value to Json. Note the type must be marked Serializable or include a DataContract attribute.
(Defined by JsonExtensionsWeb.)

Properties

  NameDescription
Public propertyAllowLeadingWildcard
Set this to true to allow search in word.
Public propertyBeginModifiedTimeUtc
Begin Date of the time when Content was last modified (in Utc). This field is optional.
Public propertyBodySnippetLength
Maximum length of highlighted title field in the results
Public propertyCultureCode
Culture Code associated with the content.
Public propertyCustomKeywords
Restrict search to specific Keywords. This field is optional. Lookup is done in the SearchDocument.Keywords collection.
Public propertyCustomSortField
Name of the custom sort field, works with SortFields.CustomNumericField or SortFields.CustomStringField option.
Public propertyEndModifiedTimeUtc
End Date of the time when Content was last modified (in Utc). This field is optional.
Public propertyKeyWords
Keywords to search for.
Public propertyLocale
Locale to restrict Search to. This field can be left empty for single language site
Public propertyModuleDefIds
A collection of Module Def Ids that should be searched upon [Optional]. Match is performed only when a SearchTypeId for Module Search Crawler Id
Public propertyModuleId
Module Id to restrict Search. Value > 0 is used only.
Public propertyNumericKeys
Restrict search to specific NumericKeys. This field is optional.
Public propertyPageIndex
Page Index for the result, e.g. pageIndex=1 and pageSize=10 indicates first 10 hits. Default value is 1
Public propertyPageSize
Page size of the search result. Default value is 10.
Public propertyPortalIds
A collection of Portal Ids of the Site to perform Search upon. This field must be specified or else Portal 0 will be searched by default.
Public propertyRoleId
Role Id to restrict Search. Value > 0 is used only.
Public propertySearchContext
Context information such as the type of module that initiated the search can be stored here.

Remarks

This is key-value pair, e.g. "SearchSource","SiteSearch"
Public propertySearchTypeIds
A collection of Search Type Ids that should be searched upon [Optional]
Public propertySortDirection
Sort option of the search result. This field is optional.
Public propertySortField
Sort option of the search result. This field is optional.
Public propertyTabId
Tab Id to restrict Search. Value > 0 is used only.
Public propertyTags
Restrict search to specific tags. This field is optional.
Public propertyTitleSnippetLength
Maximum length of highlighted title field in the results
Public propertyUniqueKey
A key to uniquely identify a document in the Index
Public propertyWildCardSearch
Set this to true to perform perform WildCard Search.

See Also