Is this really the version you are looking for? Kentico Xperience 8.1 Documentation is no longer updated. Use the switcher in the header to choose your product version.
The smart search allows users to search through the content of files uploaded as page attachments. The attachment search supports both types of file storage provided by Kentico (database or file system).
The attachment search only works for files that are connected to pages through one of the following methods:
By default, the attachment search supports the following file types:
Note: The search does NOT work for:
You can limit which of the file types are searchable for individual websites:
If you wish to search one of the unsupported file types, you need to:
The attachment search is a part of the functionality of standard Page indexes. The attachment search is NOT available for Pages crawler type indexes, which directly index the HTML output of pages.
To set up the attachment search for your website:
While building the page index, the smart search processes the allowed pages, extracts the text of any attachment files and includes it in the content of the index (along with the other page data). When users perform a search using the index, the system returns results for pages whose attachments match the search expression.
Updating the search content of attachments (Upgrades and Hotfixes)
Kentico stores the text content extracted from page attachments in the database. When rebuilding page indexes, the search loads the "cached" attachment text from the database. The system only processes the file text directly for attachments that do not have any search content saved.
If you apply a hotfix or upgrade that changes how the search indexes attachment files, you need to clear the attachment search content:
You can then Rebuild your page indexes, which updates the attachment content according to the new functionality.
You can adjust how the system indexes attachment files by adding keys to the appSettings section of your application's web.config file.
The indexed content always includes:
Indexing of very large files can be resource intensive and have a negative impact on your website's performance. To prevent the system from indexing files larger than a certain size, add the CMSSearchMaxAttachmentSize key:
<add key="CMSSearchMaxAttachmentSize" value="10000" />They key sets the maximum allowed file size in kB. The search ignores page attachments whose size exceeds the value.
When indexing the content of XML files, the search does NOT include the following content by default:
You can enable indexing for such content by adding the following web.config keys:
<add key="CMSSearchIndexXmlComments" value="true" />
<add key="CMSSearchIndexXmlAttributes" value="true" />By default, the search can read text files (txt and csv) that use the following character encoding:
If you encounter problems when indexing text files with a different encoding type, you can enable automatic encoding detection:
<add key="CMSSearchDetectTextEncoding" value="true" />The system then attempts to detect the encoding type for each file, and use the correct option when reading the content during the indexing process.
Note: Correct encoding detection is not guaranteed for all files. Automatic detection also slightly increases the time required to index text files.