ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was wondering if anyone had any links pointing to information on search engine design. I am not talking about the ranking algorithms ( e.g. google - page rank ) I am more concerned with the mechanics.
A good example is the search engine that powers this site. It handles the search form, stores meta information about your search ( e.g.: "Ten Most Recent Searches at LinuxQuestions.org" ), puts up a page saying that your search is in progress and then uses a "<meta>" redirect to forward you to your results. I think that the results are stateful, so I can view the first 25 records and then hit next page and see the next 25 results w.o having to redo the search. So I am looking for information on how to impliment these kinds of fetures.
I have been googleing non-stop for like an hour w/ mixed results, any Ideas?
Well, as most of these boards are DB-powered (usually some form of SQL-based database), you simply use the DB queries to do the searching for you in most cases. Then you just parse the results.
But don't confuse forum searches with search engines, because forum searches are basically just DB query frontends.
No confusion here,
I am looking for more than just a form handling script to execute a SQL statement, I think I am going to look into text-file cahing because It would be competely in efficient to search a 10,000 record database every time you wanted to grab the next 25 matches.
Well, any database worth anything has its own caching routines. If you're using a database, you shouldn't really try to build on top of it what ought to be built INTO it. If you're doing very specific things (whatever that "next 25 matches" thing you are referring to sounds like a candidate), then that's all well and good, but you'll need to pass along more details for help on those
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.