How to make related questions autopopulation

I want to link [things / questions] in my application, similar to what StackOverflow does when you exit the Title field.

I can only think of one way to do this, which I think can be fast enough

  • Do a heading search in the name enclosure of all [things] and return the first matches of x. We can use any search used to search the site.

What are other ways to do this that are fast enough since it will be sent by tab, so a lot of server-side processing is impossible for him.

I'm just looking for a way to do this, but I use mysql and DJango, so if your answer uses this, so much the better.

[I can't come up with good tags for this, so please feel free to edit them]

+4
source share
1 answer

You are looking at a content-based recommendation algorithm. AFAICT StackOverflow looks at the tags and words in the title and finds questions that share some of them. It can be implemented as a search for the nearest neighbor in a space where documents are represented as TF-IDF vectors .

Implemented, go with any Django search engine that supports stems, stop words, non-line matches, and tf-idf scales. The algorithmic complexity is low (only a few index queries), so it doesn't matter if it is written in Python.

If you do not find that the search engine does what you want, leave the source and stop words in the search engine, call the search engine for individual words and make your own tf-idf with an rating that supports similar tags.

+1
source

All Articles