SQL-based search engine

From: Tore Aursand <tore_at_extend.no>
Date: 2000/02/24
Message-ID: <MPG.131f4de29738f53a9896a1_at_news.online.no>#1/1


Hi!

I've got a problem with a search engine I'm creating. I'm using MySQL, and have got three tables which looks roughly like this (you should have fixed font size to read this);

tblArticle      tblArticlKeyword      tblKeyword
----------      ----------------      ----------
ArticleID  <--> ArticleID         +-> KeywordID
Date            KeywordID <-------+   Keyword
Header

Now, I want to search for keywords in all the articles, but I'm not sure of the fastest way to do that.

Preferably, I would like my search engine to accept multiple words, and thereafter sort the result on relevance (ie. the articles with most of the keywords in it will be listed first).

MySQL don't support nested queries, unfortunately (though the coming version will), so I need to solve this the hard way for now.

Speed is of great importance here, as the tables consists of the following number of records;

   tblArticle ......:    160,000
   tblArticleKeyword: 13,000,000
   tblKeyword ......:    500,000

Any help will be appreciated, and please excuse my bad English. It's not my primary language.

Please answer in this newsgrup, or - alternatively - send an Email to tore_at_extend.no.

Thanks in advance!

-- 
Tore Aursand - tore_at_extend.no - http://www.extend.no/~tore/
Received on Thu Feb 24 2000 - 00:00:00 CET

Original text of this message