Search Index

Shaun Sansom asked on January 26, 2017 14:18

Is it possible to stop the indexing of certain parts of an HTML page. i.e If there are comments included within using the HTML Comment Tag

Correct Answer

Anton Grekhovodov answered on January 26, 2017 15:35

Hi Shaun,

You can customize search crawler and remove all HTML between comment tags. Read documentation here Customizing how crawlers process page content

Or if you use ascx controls (or transformations), you can wrap your comments in <%-- comment --%> and it will be removed from output html. For K# you can use another syntax: K# comments

1 votesVote for this answer Unmark Correct answer

Recent Answers


Trevor Fayas answered on January 26, 2017 16:24

Although already marked answer, here's an article i did on how to get the smart search index crawler to only index certain sections of a page

http://devtrev.com/Trev-Tips-(Blog)/December-2016/Limit-Page-Crawler-Content

0 votesVote for this answer Mark as a Correct answer

Chetan Sharma answered on January 30, 2017 12:29

I know Anton has already provided you with correct answer, however if you would like to deep dive there is an article written by Kentico support which very detailed and instructive.

Exclude certain HTML elements

Thanks, Chetan

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.