This control provides spelling suggestions for search
queries. It can be placed anywhere on a page with the SearchResult control
(including inside SearchResult's templates). The control displays a link
which performs a search with the corrected spelling.
A custom dictionary can be specified with a list of words that should be ignored (eg. company terms, names etc). By default a US & UK English dictionary is used for spelling suggestions, however alternative dictionaries can be used by setting the Language property in the SearchSuggestions control. The extra dictionaries are available for download at http://keyoti.com/products/search/dotnetweb/dictionaries. You should download and unzip the .dict file(s) of your choice and place it in a folder under the Index Directory called "Dictionaries" (which you can create if need be). For example - myApp\IndexDirectory\Dictionaries\DICT-DE-DE-German_SE.dict. The dictionary files must not be renamed, as their language is determined from the filename. |
SearchResultId
The ID of the SearchResult control to work withCustomDictionaryPath
Path of the custom dictionary text fileMessageLabel
The label control used for the 'did you mean?' messageSuggestedLink
The hyperlink control used for the corrected spelling
FromEventOnly
Fastest source (from internal perspective) - suggestions are only taken from the FoundSpellingErrorEventArgs.PresetDictionary
Second fastest - suggestions are obtained from the internal dictionary (as specified by Language property).SearchLexicon
Third fastest - suggestions are obtained from the current list of words which have been indexed. Speed varies greatly depending on size of lexicon (eg. roughly 1 second for 100,000 words).PresetDictionaryAndOptionalSearchLexicon
Optimal (default) - uses the dictionary always, and the SearchLexicon only when no search results have been found.PresetDictionaryAndSearchLexicon
Slowest - uses the preset-dictionary and the search-lexicon always.
Displays content and location category options to the user on the page with the SearchBox control.
This simple control is intended to be a quick way to add options to the search page. See later for a more
flexible User Control based solution.
For setup instructions please see the SearchBoxOptions (Simple Usage) Example. |
LocationDropDownList
Drop down list control showing available locationsContentCheckBoxes
Check box list control showing available contentsSearchBoxId
SearchBox control to work withLocations
List of available location namesContents
List of available content namesLayout
How to layout the child controlsAutoGenerateFromIndexDirectory
The Index Directory where Location and Content Categories will be automatically generated from.AutoGenerateContentCheckBoxes
Whether to automatically generate the content category checkboxes. AutoGenerateFromIndexDirectory must be set to the index directory, when this is set true.AutoGenerateLocationDropDown
Whether to automatically generate the content location category drop down menu. AutoGenerateFromIndexDirectory must be set to the index directory, when this is set true.