PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Mod Requests

Reply
 
Thread Tools
Old 01-28-2004, 03:09 PM   #1
bloodjelly
Purple Mole
 
Join Date: Dec 2003
Posts: 106
Reverse indexing

Hi -

I'm wondering how difficult it would be to reverse the usage of the common_words.txt file so that only words in that file would be indexed, and all other words would be excluded. Any ideas?
bloodjelly is offline   Reply With Quote
Old 01-31-2004, 03:21 PM   #2
bloodjelly
Purple Mole
 
Join Date: Dec 2003
Posts: 106
No ideas? I know this is kind of a tough/weird request, but I'm very interested in trying it.
bloodjelly is offline   Reply With Quote
Old 02-05-2004, 03:46 PM   #3
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Perhaps search the files for the $common_words variable and then negate and/or remove the code related to $common_words wherever it appears.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 02-07-2004, 01:31 PM   #4
bloodjelly
Purple Mole
 
Join Date: Dec 2003
Posts: 106
Thanks! I thought maybe that would work but it seemed too simple for such a complex program. Anyway I'll give it a try.
bloodjelly is offline   Reply With Quote
Old 08-20-2004, 07:59 AM   #5
hgw
Green Mole
 
Join Date: Aug 2004
Location: Bavaria
Posts: 2
Did you succeed?

Hi bloodjelly,
did you succeed with exluding words so that only certain words are digged? Thanks, Guenter
__________________
www.7media.de
www.webvideoguide.de
hgw is offline   Reply With Quote
Old 08-22-2004, 10:39 AM   #6
bloodjelly
Purple Mole
 
Join Date: Dec 2003
Posts: 106
Hi Guenter -

Yes, reversing the indexing worked great. You simply reverse all the lines in search_functions and robot_functions (and maybe spider.php) that refer to $common_words.

So, if a line says "if $word != $common_words" you would change it to "if $word == $common_words".
bloodjelly is offline   Reply With Quote
Old 08-25-2004, 08:06 PM   #7
WebDiva 2.0
Former Member
 
Join Date: Aug 2004
Posts: 18
So, in effect, by placing what you "want" to index in common_words you can eliminate any sites having words outside of that like porn, etc. I thought to create a dirty word filter to prevent searches for smut things. I do not like these searches or even to see them in the stats file. It's awfully disgusting what some very sick people will search for.

I'm working to write a short file that will take the days top-X searches and can display them on the index page as a hyperlink query. When is finsihed, will post it here in this forums.
WebDiva 2.0 is offline   Reply With Quote
Reply

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
Incorrect Index (possible reverse lookup?) kuprishuz Troubleshooting 1 05-18-2005 11:54 AM
how to do "reverse like" search in mysql? leonardburton How-to Forum 1 12-08-2004 11:03 AM


All times are GMT -8. The time now is 08:14 AM.


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