SearchHelper Class |
Namespace: CMS.Search
public static class SearchHelper
The SearchHelper type exposes the following members.
Name | Description | |
---|---|---|
CreatingDefaultSearchSettings |
An event raised upon CreatingDefaultSearchSettings execution. Custom search field flags can be added to SearchSettings
being created.
| |
CUSTOM_INDEX_DATA |
Constant for custom index data.
| |
CUSTOM_SEARCH_INDEX |
Constant for custom search index.
| |
DEFAULT_SEARCH_CONTENT_COLUMN |
Constant for default class search content column.
| |
DEFAULT_SEARCH_CREATION_DATE_COLUMN |
Constant for default class search creation date column.
| |
DEFAULT_SEARCH_TITLE_COLUMN |
Constant for default class search title column.
| |
DOCUMENTS_CRAWLER_INDEX |
Constant for custom search index.
| |
GENERALINDEX |
General search index constant.
| |
INVARIANT_FIELD_VALUE |
Invariant field value.
| |
MAX_INDEX_PATH |
Max allowed length of path for place where indexes are stored.
260 is Windows limit, -1 for NULL, -16 for index file name, -1 for index name, -1 for slash
| |
ONLINEFORMINDEX |
On-line forms search index constant.
| |
SIMPLE_ITEM_ID |
Guid value of the simple search setting item.
| |
SynonymsWeight |
Gets the weight (from interval 0 - 1.0f) which is given to synonyms if the synonym expansion is used. 1.0f means the synonyms are equally important as original words.
|
Name | Description | |
---|---|---|
BasicSearchReplacer |
Gets the regular expression for basic search replacement.
| |
CustomSearchPath |
Custom search path.
| |
ExcludedFieldsFromConversion |
Gets or sets the fields separated by semicolon, this field will be excluded from int/double conversion
| |
ImageContentReplacer |
Gets the regular expression for image content tag.
| |
MaxAttachmentSize |
Gets the maximum size of an attachment (in kB) which are processed with content extractors. 0 means unlimited size (default).
If a positive number is set, attachments the size of which exceeds the value are not processed and their content is not indexed.
| |
MaxFieldLength |
Maximal field length.
| |
MaxResults |
Gets the value that is used for maximal number of records returned from search index.
| |
RemoveDiacriticsForIndexField |
Gets the value that indicates whether diacritics should be removed for index field
| |
SearchContentXpathValue |
XPath function to specify which web parts fields should be added to the search document content.
| |
SearchOnlyWhenContentPresent |
If true, performs the search only when the content part of the search expression is present.
| |
SearchPath |
File system location where Smart Search stores the indexes.
| |
StoreContentField |
Gets the value that indicates whether content field should be stored in the index
| |
SubsetAnalyzerWordRegex |
Gets the regular expression for word splitting used in SubsetAnalyzer.
|
Name | Description | |
---|---|---|
AddGeneralField |
Adds a general field do the search document.
| |
AddObjectDataToDocument |
Adds object data to iDocument, data for content field prepares and returns.
| |
CreateDefaultSearchSettings |
Creates the default search settings for given column name and its data type.
| |
CreateDocument |
Creates search document based on given parameters
| |
CreateEmptyDocument | Obsolete.
Creates empty search document.
| |
CreateRebuildTask |
Creates rebuild task if search settings are not empty, for user index is task created always.
| |
CreateSearchSettings(String, IDictionaryString, Boolean, String) |
Creates new SearchSettingsInfo for a field from given parameters.
| |
CreateSearchSettings(String, IDictionaryString, Boolean, String, SearchSettingsInfo, Boolean) |
Creates new SearchSettingsInfo for a field from given parameters. The out parameter fieldChanged indicates, whether the field's definition has changed
when compared to ssiOld.
| |
Delete(String, ICollection, SearchIndexInfo) |
Remove document(s) with dependence on field name and field value collection for specified index.
| |
Delete(String, String, SearchIndexInfo) |
Remove document(s) with dependence on field name and field value for specified index.
| |
FilterResults |
Filters the search results, returns number of resulting items
| |
FinishRebuild |
Finishes the rebuild of the given index by marking it as updated
| |
GetBinaryDataSearchContent |
Extracts content from binary data of the given info.
| |
GetCustomSearchIndex |
Returns ICusromSearchIndex for specified index info.
| |
GetDefaultSearchSettings(String) |
Returns the default search settings of the class.
| |
GetDefaultSearchSettings(DataClassInfo) |
Returns the default search settings of the class.
| |
GetResultsToProcess |
Processes the results from the given range matching the required type
| |
GetResultTypes |
Gets the list of all types present in the given results
| |
GetSearchFieldDefaultValue |
Gets flag value which should be preselected for a column based on its data type. Handles local index flags only.
| |
GetStopWordsFileInfo |
Returns FileInfo object of stop words file for the given path
| |
Highlight |
Highlight input text with dependence on current search key words.
| |
InvalidateSearcher |
Invalidates searcher for the given index.
| |
IsClassSearchEnabled |
Returns true if given class allows search.
| |
IsSearchAllowedExtension |
Check if file extension is allowed for indexing such attachment in search index.
| |
IsSearchTaskCreationAllowed |
Returns true if the search task for given node should be created.
Returns true if
- search is allowed on general level AND
- search is allowed for class of the object
| |
LoadCustomAnalyzerTAnalyzerType |
Returns analyzer object for specified analyzer name.
| |
Optimize |
Optimize specified index.
| |
PartialRebuild |
Rebuild part of the index with dependence on type and values.
| |
PrepareContentValue |
Prepares value to add to content field.
| |
Rebuild |
Rebuild specified index.
| |
Search |
Returns dataset with search results, if search is used for non-document index, path and class name values are ignored (can be null).
| |
SearchEnabledForClass |
Returns true if search is enabled for a given class (document type). Returns false if class not found.
| |
SearchFieldChanged |
Returns true if any field included in the search changed (checks fields defined in Class Search Settings).
| |
SetDefaultClassSearchColumns |
Sets default class search columns.
| |
Update |
Insert or update document for specified index.
|