|
01-28-2004, 04:09 PM | #1 |
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?
__________________
Foundmyself.com artist community, art galleries |
01-31-2004, 04:21 PM | #2 |
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.
__________________
Foundmyself.com artist community, art galleries |
02-05-2004, 04:46 PM | #3 |
Head Mole
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. |
02-07-2004, 02:31 PM | #4 |
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.
__________________
Foundmyself.com artist community, art galleries |
08-20-2004, 08:59 AM | #5 |
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 |
08-22-2004, 11:39 AM | #6 |
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".
__________________
Foundmyself.com artist community, art galleries |
08-25-2004, 09:06 PM | #7 |
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. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Incorrect Index (possible reverse lookup?) | kuprishuz | Troubleshooting | 1 | 05-18-2005 12:54 PM |
how to do "reverse like" search in mysql? | leonardburton | How-to Forum | 1 | 12-08-2004 12:03 PM |