How can I exclude certain portions of node content from being indexed? I have some Javascript in my nodes which shows up in the drupal search and mucks up search results.

I would like to wrap portions of the node content with something like so the content between the tags would not end up in my search index or search results.

Any ideas? I have tried many different search phrases on drupal.org and found nothing ("remove from search", "exclude from search", etc.).

Thanks!h

Comments

FabriceV’s picture

Dear Mr,

Static information pages must be viewed throught menu, but I had like not to see them indexed in content, recent, tracker and search modules or pages. Any ideas?
I supposed could serve Tott too...

tott’s picture

Anyone with an idea? The javascript is really mucking up my search results. How can I make some code no get cached by Drupal's search module?

tallsimon’s picture

Just in case anyone comes across this old post (it lists high in google!)

http://drupal.org/project/search_restrict