Download Open document - Demo Site
Transcript
|9 Marking what to index You can, and should control what part of the webpages that should be indexed as text - that is, what part of the html should be tokenized and index into the “TEXT” field in the index. You use the de-facto standard comment tags <!--BeginNoIndex--> and <!--EndNoIndex--> to do this. (No whitespace) The standard procedure is to exclude everything on a page and then “un-exclude” the main contents only. This approach is illustrated in the figure below. A “BeginNoIndex” starts the page and an “EndNoIndex” terminates the page. In the control or placeholder or other rendering component that emits the main contents html, an “EndNoIndex” starts the emission, and a “BeginNoIndex” terminates it. The result is that only the text within the Main Contents is extracted from the webpage and added to the TEXT field. You should normally always exclude from being indexed into the TEXT field, the following page elements: • • • Headers – identity and similar, that appears unchanged on all pages. (Since the text appears on all pages, it doesn’t add any find ability to the documents in the index) Navigation elements. (The link text should appear on and be indexed as part of the page to which the link leads. This also ensures that the link text can only be found by authenticated users, if the page is protected) Content from teasers, panel-boxes, news-links, banners etc. (These elements should be indexed on their own pages instead. A notable exception is panel-boxes containing trivia or other facts or perspectives on the main content, that does not natively belong to any other page, or is highly relevant for the page where they appear.) Forward IT ApS – www.forwardsearch.dk – http://portal.forwardsearch.dk