thanks tachyon, i will buy that book. but can you also recommend something that's not too boring and kind to beginners like me? i am also planning to take some classes on perl and cgi, i wonder if there are some offered here in new york city. do you know any?

i am not using this search engine for http://www.textcentral.com. it is a totally different one. if you wanna see what i've done so far it's at http://alleba.dreamhost.com. my site is called 'alleba', a search engine and web directory. it is true that it searches through a flat text file. it is called links.db. but what do you mean by 'use a real database or generate an index that you can search'? how could i do this?

i'm also posting my links.db and category.db and several others to get you into the whole schematics of the script. everything can be found at: http://alleba.dreamhost.com/scripts.
nph-build.cgi -- rebuilds all the category .html files as well as the homepage (index.html) and directory page (dir.html). i'm not sure if this is relevant in my question.

db-utils.pl -- i think this file contain some subs that search.cgi uses, such as for sorting links and categories.

search.cgi -- this file does the actual search in links.db and category.db.

site_html_templates.pl -- contains the templates in which several generated pages are based on, like for the search results. nph-build also builds category pages based on several elements below this file.

links.db -- the links database, contains the ID, title, keywords etc.

category.db -- contains all the category and subcategory names.

links.def -- contains information on the field assignments of each piece of information. e.g. title 1, description 5.

links.cfg -- here all the important settings are set such as absolute paths and url's that each .cgi and .pl file relies on.

hopefully these files will enlighten everyone. thanks, looking forward to your replies.

drewboy

In reply to Re: Re: Faster Search Engine by drewboy
in thread Faster Search Engine by drewboy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.