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 Add allowed content () and Add excluded content () links.
Adding allowed content
In this dialog, you are defining what part of the website will be indexed. You can specify it 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 some) will be indexed too |
• | Including blog comments: if checked, blog comments attached to blog posts specified by the properties above (if there are some) will be indexed too |
• | Including message boards: if checked, message boards attached to documents specified by the properties above will be indexed too |
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.
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 indexed |
• | Document types: document types that should be included in indexing |
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.
Page url: http://devnet.kentico.com/docs/devguide/index.html?smart_search_definign_index_content.htm