Go Back > PhpDig Forums > How-to Forum

Thread Tools
Old 04-27-2005, 06:17 AM   #1
Green Mole
Join Date: Apr 2005
Posts: 1
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.
gazchap is offline   Reply With Quote
Old 04-27-2005, 11:16 AM   #2
Purple Mole
Join Date: Dec 2003
Posts: 106
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.
bloodjelly is offline   Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing extra text from summary in results philcheese How-to Forum 0 10-12-2007 03:26 AM
Extracting search results and using them in your own web pages ciaran@clissman Mod Submissions 1 11-26-2005 10:14 AM
No most searched terms, biggest results, most 0 results, last search queries, etc. jongag1 How-to Forum 6 04-22-2005 10:43 AM
Removing "Select a site to search" aslan How-to Forum 2 08-25-2004 09:33 PM

All times are GMT -8. The time now is 11:05 AM.

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