I wrote a script that searches certain columns in my database and depending on how many keywords show up and in which columns they get assigned certain point values. Like if the key word(s) are found in the "title" column they get more points then if found in the body column. This works good but I also need to search html files that arn't dynamically driven. I was able to index the html files with keywords but I have no way to do any relevance checking besides how many times a keyword comes up. I want to be able to check what tags those keywords where found in so if they were found in an h1 or title tag they get more points then inside a <p> tag and soforth. I have been trying to figure out how to do this but I can't think of a way? Are there any articles on doing this or any scripts that do this? Everything I review only does relevance by counting the number of times a keyword comes up. If anyone knows anything about this please let me know, thank you.