Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

drupal - auto-generate and display contextually related links based on content

Posted on 2010-08-25
5
Medium Priority
?
486 Views
Last Modified: 2012-06-22
Hi, I was wondering if there is any drupal module that will scan our site articles, and automatically suggest contextually relevant links based on the content of the articles.

something similar to the links below:

http://relatedlinks.googlelabs.com/

http://mitcho.com/code/yarpp/ (wordpress)

http://ajaydsouza.com/wordpress/plugins/contextual-related-posts (wordpress)

http://www.searchenginejournal.com/3-ways-to-display-related-posts-in-wordpress-blog/17213/

http://www.surphace.com/ 

0
Comment
Question by:darkbluegr
  • 3
5 Comments
 

Author Comment

by:darkbluegr
ID: 33523867
0
 
LVL 16

Assisted Solution

by:HagayMandel
HagayMandel earned 600 total points
ID: 33532251
It seems that the best and most simple way to it is to use the search_index table from the database.
The select statement is:
SELECT 'sid' FROM  `search_index`
ORDER BY  `score`DESC ,`word` DESC
LIMIT 0 , 30
(Where LIMIT limits the number of results).
The sid actually is the nid or vid in the node_revisions table.

You can use the otput (array of sid) to generate a select call to the node_revisions table, and generate links to the actual nodes accordingly.

After that, the
0
 

Author Comment

by:darkbluegr
ID: 33549250
Thank you - can you please repost your answer as it was truncated for some reason
0
 

Accepted Solution

by:
ellyjonez earned 900 total points
ID: 33563815
If you use the ApacheSolr search module, it comes with an excellent "related content" block that uses search. It's also a generally better Drupal search.

http://drupal.org/project/apachesolr
0
 

Author Closing Comment

by:darkbluegr
ID: 33658861
thanks for the interesting info
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question