PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   Removing pages and artificially pushing search results to the top. (http://www.phpdig.net/forum/showthread.php?t=1990)

gazchap 04-27-2005 06:17 AM

Removing pages and artificially pushing search results to the top.
 
Just got a couple of questions - this is my first implementation of phpDig so I'm pretty new.

1) Is there any way of removing a single page from the index? phpDig indexed our Site Map, and now there is the unfortunate side effect that some searches show the site map first rather than the more relevant pages.

2) Is there any way of artificially pushing a search result to the top of the listing? For example, if a user searches for a certain keyword, the page that is at the top is one that arguably is of no use to most people that would be searching for that word.

I realise I can probably change the content on the pages in question to try and bump them up, but that is not particularly desirable as the content is quite precise.

bloodjelly 04-27-2005 11:16 AM

Hi gazchap -

I had a similar problem with the sitemap on my site. One way to prevent indexing is to add one of these lines in the HEAD section:

HTML Code:

<meta name="robots" content="noindex,follow">
<meta name="robots" content="noindex,nofollow">

The first prevents indexing, and prevents the spider from following any of the links on the page. The second prevents indexing but allows the spider to follow the links. This applies to all spiders that might visit the page. If you want to target PHPDig specifically, you can use the <!--PhpdigExclude--> tag (see documentation). Don't forget to delete the sitemap page from the index after making these changes.

As for question #2, one way to push the result to the top is to manually go into the database and change the weight of the page/keyword you want. Another, better way would be to use the PhpdigExclude tag on the page you don't want coming up in search results, then reindexing it. This way, Phpdig will favor the other page.

Hope that helps. :)


All times are GMT -8. The time now is 07:09 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.