Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 35589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:15:34+00:00 2026-05-10T14:15:34+00:00

I was going to Ask a Question earlier today when I was presented to

  • 0

I was going to Ask a Question earlier today when I was presented to a surprising functionality in Stackoverflow. When I wrote my question title stackoverflow suggested me several related questions and I found out that there was already two similar questions. That was stunning!

Then I started thinking how I would implement such function. How I would order questions by relatedness:

  1. Question that have higher number of words matchs with the new question
  2. If the number of matchs are the same, the order of words is considered
  3. Words that appears in the title has higher relevancy

That would be a simple workflow or a complex score algortithm? Some stemming to increase the recall, maybe? Is there some library the implements this function? What other aspects would you consider? Maybe Jeff could answer himself! How did you implemented this in Stackoverflow? 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T14:15:35+00:00Added an answer on May 10, 2026 at 2:15 pm

    One such way to implement such an algorithm would involve ranking the questions as per a heuristic function which assigns a ‘relevance’ weight factor using the following steps:

    1. Apply a noise filter to the ‘New’ question to remove words that are common across a large number of objects such as: ‘the’, ‘and’, ‘or’, etc.
    2. Get the number of words contained in the ‘New’ question which match the words the set of questions already posted on the website. [A]
    3. Get the number of tag matches between the words in the ‘New’ question and the available. [B]
    4. Compute the ‘relevance weight’ based on [A] and [B] as ‘x[A] + y[B]’, where x and y are weight multipliers (Assign a higher weight multiplier to [B] as tagging is more relevant than simple word search)
    5. Get the top 5 questions which have the highest ‘relevance weight’.

    The heuristic might require tweaking to get optimal results, but it should work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was going to ask a question here about whether or not my design
I was going to ask a question about preparing a desktop application to support
I'm going to try to ask my question in the context of a simple
Basically I'm going to go a bit broad here and ask a few questions
I have asked this question earlier today but I didn't provide enough information and
Earlier this week I ask a question about filtering out duplicate values in sequence
So, I've come back to ask, once more, a patterns-related question. This may be
I am going to ask a question that might sound weird. Is there a
I've seen a lot of questions on this but I'm going to ask the
I see this question asked a lot in the related questions, but my need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.