Assigning top results

bhoffmann
Posts: 1
Joined: Tue Jun 19, 2001 11:48 am

Assigning top results

Post by bhoffmann »

I'm looking for a way to assign specific pages to certain key words
on our search engine, such as listing the Entomology Department home page
(http://entomology.wsu.edu/) as the top result for the terms "Entomology,"
"Department of Entomology," and "Entomology Department."

I'm not interested in using typical ranking factors for this, because there will always be a freshman who makes a personal page that will out-rank our preferred top page. Is there a way to create database entries that will match specific terms to specific pages, and place these pages at the top of the results?
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

Assigning top results

Post by Kai »

You could add code to the search script to check the query for certain keywords and print specific URLs for them, before the search, but then you'd want to also remove those results from the main search to avoid duplicates.

The best way is to make sure your desired pages rank higher, and possibly artificially lower the rank of other pages as well. Make sure your desired top pages have their keywords as early as possible in the title, meta or body. After each walk, search for each of your keyword queries, and for each page that ranks above your desired top page, prepend something like "the the the the" to the Title or Body in the html table. Then re-index (gw -index) the table. You'll have to <sandr> out this text when you display the results in the search script as well. You might also turn down likepdocfreq as well.