PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Is there a way to index only a part of the page content?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is there a way to index only a part of the page content?

    I'm having issues with tmy search results, which always seems to list my main navigation items before the main content in 'context', presumably because it has indexed the whole page, navigation list and all (and the main nav resides in the head of the document).

    My config for this is 'offline' and outputs php. I'm using the free version at the moment.

    I'm hoping there might be a way to set the indexer, so that for example, only content inside a specified class/id element will be indexed and added to the data (or vice-versa, with specified elements being omitted when the page is indexed). So far I haven't found any info to suggest I can do this.

    Is there a way?
    Many thanks for any help.

  • #2
    You can put <!--ZOOMSTOP--> and <!--ZOOMRESTART--> tags to mark the sections of your page which you do not want to be indexed. For more info, see the FAQ Q. How do I prevent parts of my webpage from being indexed (eg. navigation menus or page footers)?

    Comment

    Working...
    X