Community-Credit.com | NonProfitWays.com | SOAPitstop.com   Skin:   
      User: Not logged in 
Home
Newsletter Signup
XSLT Library
Latest XML Blogs
Featured Examples
Presentations
Featured Articles
Book Chapters
Training Courses
Events
NewsGroups
 
Discussions
Examples
Tutorials
Tools
Articles
Resources
Websites
 
Sign In
My Profile
My Articles
My Examples
My Favorites
My Resources
Add a Resource
Logout
 
About Me
My Blog
HeadGeek Articles
Talking Portfolio
Resume
Pictures
World Trip Pics

Reply: Similar Threads

Date Posted:7/12/2005 11:05 PM
Posted by:
vishal_7 Vishal

hey David,


   I am working on a forum myself and want to implement a "similar thread" feauture. I am not sure, if you know this, but many forums shows a list of threads at the bottom of the posts and show threads that similar like the current one. ie: http://www.geekstogo.com/forum/Similar_Threads-t11235.html I am interested to know how this can be achieved. Can you help me out once again?


Thanks


Date Posted:7/12/2005 11:21 PM
Posted by:
David Silverlight
Hello Vishal,

      Sure, let me see if I can lend some advice, at least at a high level.  One way to find similar threads is to search against the database to match the words that are found in the original post.  Since the post is likely to be rather lengthy, I would recommend using the title as your "Search Key".  Naturally, you will want to eliminate insignificant words like "and" "or" "to" "this", etc.  For example, if the post title is "Switching to RSS Bandit", you will want to search for only the records that have posts containing "Switching", "RSS" or "Bandit", to return similar records.  Maybe you will want to limit it to the top "X" records.  That is a description of the approach at a high level.  Why don't you let me know what you think so far and we can work to refine it if it seems like an approach that you want to use.

     Kindest regards,
          David Silverlight
          HeadGeek@XMLPitstop.com

Date Posted:7/14/2005 9:20 AM
Posted by:
vishal_7 Vishal
Hey David,
   
   many thanks for the quick reply - though my reply to your reply is a bit late :) Your approach sounds certainly interesting and would like to implement it that way.

For the insignificant words, how would you store them? In a sql table - XML file? I think a SQL table, would be the best, but I would like to hear your oppinion. I wrote a quick SQL, but it returns over 200 rows, and I am not even sure, if I am doing it the correct way:

SELECT * FROM t Where Post LIKE '%switching%' OR Post LIKE '%rss%' OR Post LIKE '%bandit%'

Does that look good?

Thanks for your support.





Fans of "The Office"
Dwight Bobbleheads are here!

  “It's me! I'm the bobblehead! Yes!”



Advertise on XMLPitstop

Advertise on XMLPitstop


EggHead Cafe
Web Servicee development
DotNetSlackers
Brother compatible cartridges
fax
it help desk
SPOC
chicago web design
Alojamiento Web
Web Hosting
PTZ Security Camera
Calvin klein sunglasses
Video Surveillance
Skype vs. sipcall

4,176 Total Members
6 members(last 30 days)
3 members(last 7 days)
2 members(today)

1,948 Total Discussions
0 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

47,487 Total Blog Posts
0 Blogs(last 30 days)
0 Blogs(last 7 days)
0 Blogs(today)

8,699 Newsgroup Posts
0 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

14,140 Total Resources
0 Resources(last 30 days)
0 Resources(last 7 days)
0 Resources(today)


 

David Silverlight's XMLPitstop.com| 2801 Florida Ave #225|Miami, FL 33133|Ph:305-447-1139