Available web parts

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

The Smart search module comes with the web parts mentioned in the text below. Only the most important web part properties are mentioned here. For a complete list and explanations of web part properties, please refer to Kentico CMS Web Parts reference or click the Documentation link at the top right corner of the web part properties window.

 

Smart search web parts are located in the Full-text search web part category.

 

devguide_clip0702

 

The following web parts come with the Smart search module:

 

Smart search dialog with results

 

This is the all-in-one web part for both searching and displaying search results.

 

devguide_clip0704

 

Smart search dialog

 

This web part needs to be placed on a page together with the Smart search results web part. The functionality of the two web parts will be identical to Smart search dialog with results, with the difference that these two web parts can be placed at different sections of the page. You can also connect the web part to a Smart search filter.

 

devguide_clip0705

 

Smart search box

 

This web part is similar to the Smart search dialog, with the difference that users can not select the Search mode, which is hard-set in its web part properties. It is useful where limited space is available for the web part, e.g. in menus, etc.

 

devguide_clip0706

 

Smart search results

 

This web part can be used to display results of a search request sent from a Smart search box or Smart search dialog web part. It can be placed either on the same or on a different page as one of the two web parts. In case that it is placed on a different page, the page needs to be specified by their Search results page URL property.

 

devguide_clip0708

 

Smart search filter

 

This web part can be used to enable users to search only documents of a specific type. You can find a detailed description of how this works in this chapter.

 

devguide_clip0709

 

The following properties of Smart search dialog with results and Smart search results web parts are the most important:

 

Property Name

Description

Indexes

Determines which index will be searched; multiple indexes can be entered and then searched at the same time.

Transformation name

Name of the transformation used to display search results; there are two default transformations: CMS.Root.SmartSearchResults and CMS.Root.SmartSearchResultsWithImages.

Search options

Sets the level of condition which can user enter:

None: User can specify only keywords, everything in text box is escaped.

Basic: User can input special characters (such as +,-,...) but cannot filter by document field name (field:value).

Full: All search options can be used.

 

More information can be found in the Search syntax topic.

Search condition

Using this property, you can limit which documents will be searched using the search syntax (e.g. articleid:[(int)25 TO (int)150] ).

Search results order

Defines sorting of the search results.

 

You can specify one or more document fields (separated by commas). Search result will be sorted by them.

You can input the ##SCORE## macro which means that results will be sorted by score.

Default direction of sorting is ascending. You can change direction to descending by DESC keyword (e.g. articleid DESC).

 

If you encounter the "field <fieldname> does not appear to be indexed" error when using multiple indexes, try specifying the type of the field in the following syntax: (date)documentcreatedwhen

 

Page url: http://devnet.kentico.com/docs/devguide/index.html?smart_search_available_web_parts.htm