Kentico CMS 6.0 Context Help

Search fields tab

Search fields tab

Previous topic Next topic Mail us feedback on this topic!  

Search fields tab

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

This tab can be used to configure the fields of the object type specified for the general index. The settings here affect how objects can be searched for.

 

Using the drop-down lists at the top, you can specify what kind of data should be displayed in search results:

 

Title field - specifies which field will be used as the title of result items.
Content field - specifies which field will be used for the content extract of result items.
Image field - specifies which field will be used for the image of result items.
Date field - specifies which field will be used for the date and time displayed with result items.

 

The rows of the main table contain the fields available for the specified type of objects. These fields correspond with the columns of the database table used to store objects of the given type. The following options can be set for individual fields:

 

Content - if checked, the content of the field will be indexed and searchable the standard way. Otherwise, objects will not be included in the search results even if they contain the searched for expression in this field.
Searchable - if checked, the content of the field will be searchable by entering an expression in format: <field code name>:<searched phrase>. Search requests of this type only search through the given field and not through the other fields.
Tokenized - indicates if the content of the field should be processed by the analyzer when indexing. The general rule is to use this for Content fields and not for Searchable fields.
Custom search name - relevant for Searchable fields. The specified value is used as a substitute for the field code name in the <field code name>:<searched phrase> search expression. If a value is entered, the original code name can't be used.

 

You can use the Set automatically link to apply the default configuration for the specific object type. Any changes must be confirmed by clicking the OK button below the table. Once the changes are made, the index must be rebuilt in order for its search functionality to be affected.

 

 

 

Important!

 

The configuration of search fields is global for objects of the given type. If there are multiple general indexes for one object type (using the same Object name), changing the search field settings for one index will also affect the others.

 
More resources can be found at:

 

Developer's Guide -> Modules -> Smart search -> Overview
Developer's Guide -> Modules -> Smart search -> Managing indexes -> Defining general index content
Developer's Guide -> Modules -> Smart search -> Search syntax