Defining document index content

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

On the Index tab of a document index, you can define which documents on the site will be indexed. This is done by defining allowed and excluded content.

 

Excluded content is subtracted from the allowed content. So for example if you allow /% and exclude /Special-pages/% at the same time, it means that all pages on the site will be indexed, except of all pages found under the /Special-pages node.

 

The dialogs for defining new allowed/excluded content can be accessed using the View Add allowed content and AddExcludedContent Add excluded content links.

 

devguide_clip0138

 

Adding allowed content

 

In this dialog, you are defining what part of the website will be indexed. You can specify this by choosing Path to the indexed documents, Document types of the indexed documents or a combination of both. The following options can be specified:

 

Path: path to the documents that should be indexed
Document types: document types that should be included in indexing

 

Including ad-hoc forums: if checked, ad-hoc forums attached to documents specified by the properties above (if there are any) will be indexed too
Including blog comments: if checked, blog comments attached to blog posts specified by the properties above (if there are any) will be indexed too
Including message boards: if checked, message boards attached to documents specified by the properties above will be indexed too

 

Other objects or documents displayed on the specified documents by web parts will not be indexed. E.g. the content of news documents displayed by a Repeater web part on a specified document will not be added to the index etc.

 

Examples:

 

Path: /%
Document types: empty

 

In this case, all documents on the site will be indexed.

 

Path: /Partners
Document types: empty

 

In this case, only the /Partners page will be indexed, without the pages under it.

 

Path: empty
Document types: CMS.News

 

In this case, all documents of the CMS.News document type on the whole site will be indexed. Please note that in this case, empty path field is equal to /%.

 

Path: /Products/%
Document types: CMS.CellPhone;CMS.Pda

 

In this case, all documents of the CMS.CellPhone and CMS.Pda document types found under /Products will be indexed.

 

devguide_clip0139

 

 

New excluded content

 

In this dialog, you are defining what part of the website will be excluded from indexing.

 

Excluded content is excluded allowed content. So for example if you allowed /% and excluded /Special-pages/% at the same time, it means that all pages on the site will be indexed, except of all pages found under the /Special-pages node.

 

The following options can be specified:

 

Path: path to the documents that should be excluded from the index
Document types: document types that should be excluded from the index

 

Examples:

 

Path: /Partners
Document types: empty

 

In this case, only the /Partners page will be excluded from indexing, not the pages under it.

 

Path: empty
Document types: CMS.News

 

In this case, all documents of the CMS.News document type on the whole site will be excluded from indexing. Please note that in this case, empty path field is equal to /%.

 

Path: /Products/%
Document types: CMS.CellPhone;CMS.Pda

 

In this case, all documents of the CMS.CellPhone and CMS.Pda document types found under /Products will be excluded from indexing.

 

devguide_clip0140

 

Page url: http://devnet.kentico.com/docs/5_5r2/devguide/index.html?smart_search_definign_index_content.htm