Ramesh Soni
Ramesh Soni

Reputation: 16077

Website Search Algorithm

How does the search algorithm on stackoverflow work? I need to implement a search functionality in one of my web sites.

Upvotes: 7

Views: 5380

Answers (5)

andreialecu
andreialecu

Reputation: 3729

You should look into Full Text Search:

https://en.wikipedia.org/wiki/Full-text_search

Upvotes: 4

Krypes
Krypes

Reputation: 561

Suggesting SQL Server assumes thats the db backend, better to use Lucene or if you dont want to use java there's .Net, C and Ruby ports of the lucene.

Actually i wouldn't be surprised if SO is Lucene.Net based.

Upvotes: 0

Dan
Dan

Reputation: 17435

I believe they use the Full Text Search capabilities of SQL Server.

Upvotes: 0

Amr Elgarhy
Amr Elgarhy

Reputation: 68902

SQL Server Full text search

and as stackoverflow saying:

  • You're browsing through questions matching search terms search stackoverflow
  • Search within specific tags by adding them in brackets, like [tag] or [tag-2].
  • Enclose your search in "quotes" to match a phrase.
  • You can narrow your search by using the ~ (near) and - (not) operators before words.*

Upvotes: 0

chaos
chaos

Reputation: 124257

Not very well. If you need your site searchable, try adding a Google search box through Adsense (and setting up a sitemap).

Upvotes: 2

Related Questions