![]() |
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? :D |
No ideas? I know this is kind of a tough/weird request, but I'm very interested in trying it.
|
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.
|
Thanks!:D I thought maybe that would work but it seemed too simple for such a complex program. Anyway I'll give it a try.
|
Did you succeed?
Hi bloodjelly,
did you succeed with exluding words so that only certain words are digged? Thanks, Guenter |
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". |
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. |
All times are GMT -8. The time now is 08:32 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.