PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   Duplicate/Similar search results? (http://www.phpdig.net/forum/showthread.php?t=1195)

ChadK 08-20-2004 04:52 AM

Duplicate/Similar search results?
 
When you search on my site for something like "Macaw" you will get a bunch of results. The problem is, many of these results are the same thing with slightly different URLs. You may see:

URL/index.php?showthread=1
this is the snippet with macaw in it

URL/index.php?markthread=1
this is the snippet with macaw in it

URL/index.php?reply=1
this is the snippet with macaw in it

URL/index.php?notification=1
this is the snippet with macaw in it



and so on... they're all essentially the same page it's just showing the links to actions that can be taken on those pages because those links also show the original post in the action. So if you click REPLY, you see the original post... but it's a unique URL so it's added twice.

Any ideas on how to eliminate this problem?
Maybe we could add something that forces a duplicate flag to mark it as a duplicated page?
MessageIDTags=="showtopic,t";
then as the spider works it's magic, it checks for "showtopic" and "t" in the url and if it's found, it checks the value of "showtopic" or "t" and uses it as a "unique index"? So two urls like this:
URL/index.php?showtopic=12?reply=true
and
URL/index.php?showtopic=12?reply=false
would be marked as "duplicate" and only one would be saved.

Charter 08-20-2004 05:59 AM

Check for PHPDIG_SESSID_VAR in the config file.

ChadK 08-20-2004 06:02 AM

Yes but that doesn't address things like TOPIC Id's does it? Isn't that for .. well, session ids?

Charter 08-20-2004 06:07 AM

sid and/or variable...
PHP Code:

define('PHPDIG_SESSID_VAR','PHPSESSID,s');  
// name of SID or variable to remove
// can be 's' or comma delimited 's,id,var,foo,etc' 



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

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