[Welcome to Web Search  This is a Registered Trademark. Web Search copyrights 1994, 1996 and 1997]

How To Pages
FTP Help | Setup | Spreadsheet/Database | Spreadsheet and Header Files | FAQ
| Options | Misc. Stuff (Ideas, Hints, Etc.) | Pull Down Menus (1st in a series)
| "Full Version" Install | Non Functional Examples


Web Search FAQ

Can I index my site with Web Search?

"Yes" if you're thinking of making a search engine like Yahoo, "no" if you're thinking of Alta Vista.

Web Search is not designed for full-text, automated site indexing and searching. However, you can make a beautiful searchable hotlist with Web Search anyways: see Web-Search.Com for proof.

All you have to do is get the titles, URLs and descriptions of the pages you want to index into spreadsheet form, and you're off to the races. And you may find you're happier with this type of search than with full-text indexing of your site.

How efficient is Web Search? Can it handle the task I want it to?

Web Search is about as efficient as any Perl CGI is going to be-which is to say, less efficient than a CGI written in meticulous C, or a custom search engine built into a web server. But I won't kid you--Web Search wasn't written with efficiency in mind. Web Search was written to get a whole lot of different jobs done with as much power and customization as possible.

With that disclaimer firmly in mind, the fact is that unless you're getting 100,000 searches a day, or running your web server on a 386 with 16 MB of RAM, you'll probably never notice Web Search running on your machine.

Examples: I think Web Search can smoothly handle databases with up to about 20,000 entries on most machines. I've tried a complex text database with 50,000 big entries on a 586 with 32 MB of RAM, and it's just awful. On the other hand, a complex search on a mostly-numerical database with 30 columns and over 1000 entries is performed in the blink of an eye.

So, it runs great for most purposes.

How do I make the database for my search engine?

We like Microsoft Works. Available everywhere for approx. $49.

Make a spreadsheet with a program like Works, Excel or Lotus 1-2-3; put the column name in the header [the very topmost block] of each column;
Leave the header blank if you don't want that column's words to appear;
Save it as "text, tab-delimited"; FTP it to the same directory that has the Web Search CGI in it.
Check Here for a sample database.

Name it the same thing as your CGI, except with ".txt" tacked on the end. For instance, your CGI is named websearch.cgi, name the text spreadsheet websearch.cgi.txt.

Trivia: note that this is just about the only case where you can use the terms "database" and "spreadsheet" interchangeably (it's a spreadsheet, but Web Search uses it for its database).

I'm getting an error message!

Here's a checklist to find out what the cause is. The correct answer to each of these should be "yes":

Perl isn't in /usr/local/bin on my machine!

Ask your system administrator to make a link to /usr/local/bin/perl from wherever it is now, with a command like

        % ln -s /usr/bin/perl /usr/local/bin/perl

This won't cost them any energy or disk space, and it'll save them a lot of trouble in the long run, because twice as many Perl scripts will run without alteration.

My search results always come up empty!

Did you include the line

  <INPUT TYPE="hidden" NAME="1sp-license" VALUE="your-code-here">

in your form, substituting your-license-code with your license code? --Note that that's a "one", not the lower-case letter L, at the beginning of "1sp-license".

How do I get new information into the database?

If you're don't write CGIs yourself, or know much about Unix, the easiest way is probably to update your spreadsheet manually using your spreadsheet software, and then FTP the new spreadsheet in place of the old.

How do I make a searchable hotlist with Web Search?

Here's the easiest way: in your spreadsheet, put the title of each site in column one, the URLs in column two, and a description of each site in column three. If you want to add additional search keywords, put those in an optional column four. Put the word "nohead" in the header [the topmost block of the column] of column one and column three.

For the form, do this:


    <FORM ACTION="websearch.cgi" METHOD="post">
    <INPUT NAME="all">
    <INPUT TYPE="hidden" NAME="sort" VALUE="col1">
    <INPUT TYPE="hidden" NAME="link1" VALUE="2">
    <INPUT TYPE="hidden" NAME="snap" VALUE="DL">
    <INPUT TYPE="hidden" NAME="1sp-license" VALUE="your-code-here">
    </FORM>

The INPUT fields mean, in order: 1) let the user search in all columns; 2) sort the matches alphabetically by title; 3) hotlink the title in column 1 to the URL in column 2; and 4) Put the output in <DL></DL> form.

I've run out of Keyword Space on my spreadsheet!

Easy Fix!
Let's say you have the following columns in your spreadsheet:
col1=Title col2=url col3=keywords
Simply add another, column 4 (col4), and type in more keywords.
In your search form simply tell "Web Search" to search the new column with this simple addition. (Your form may differ depending on how you've set it up.)
Old command: <INPUT NAME="col1col3">
New command: <INPUT NAME="col1col3col4">
If you're are using this command, <INPUT NAME="all">,
Web Search will find the new columns automatically.

Web-Search Copyright © 1996, Web-Search.Com Inc. All rights reserved.