Any Suggestions

Ken Elliott's picture

They have: 358 posts

Joined: Jun 1999

I am attempting to write a search engine for my website. But I was wondering if any of you knew of a "good" way to index the sites for searching. The one thing I don't want the search engine to do is eat up processor cycles. So I was wondering if anyone could point out a good way to index them. I was
thinking of adding them all to a txt file then searching the text file, but I don't think that would be the "best" way to accomplish my objective.

Thanx for your guys input. Don't know what I would do without the TWF.
VulKen
Keepin' It Realistic

[This message has been edited by VulKen (edited 17 June 2000).]

Pimpin like a pimp with an electrofied pimpin machine!

They have: 850 posts

Joined: Jul 1999

If you have access to an SQL database, that would be your best bet, other than that you are stuck with a flat file database.

If you are using a flat-file database, I would suggest keeping each site's info on one line, and limiting each text file to a certain amount of lines(sites) (can't really say how much, but I would think no more than 1000 lines).

Storing like:
URL|Title|Description|Keywords(optional)
would be the easiest to parse.

------------------
click here to help save lives
http://www.wiredstart.com : The Technology Start Page

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.