Fully Client Side Site Search Creator - Neils Resource WebFully Client Side Site Search Creator - Neils Resource WebSite Index - Utilities - WEB DEV. - NEILS RESOURCE WEB


Summary of Content
Free software downloads @ Build Web site for you

A free site search engine, so your visitors can quickly find what they are looking for within your site. ThisFree piece of software might be just what you need!
Simple to use and works fine for me e.g.
Site Indexer v1.1
1

The following extract can be found at the link above.

If you have a large Web site with lots of pages and a good mixture of material, creating a good navigation scheme for it can be very hard. How can you get your visitors to the information they want without lots of confusing labels, pictures and links? Site search engines provide this capability.
Here's a simple utility which can quickly create site specific search engine for you. This is a Windows program that you download and run on your home computer. It works with the local copy of your Web site and creates the additional HTML file which contains all necessary code and data to add search capabilities to your site.
You can also use this program as a free site map builder, since the created file can act like a site map with search capabilities. See below for more details.
You can run this free site search engine on any Web server (both Internet and Intranet) and even on your hard drive. The only requirement is the JavaScript enabled browser. You have full control over the appearance of the search results page. And you can specify which pages of your site need to be included in the search index.

Download Site Search Engine 1.11 [204 KB]

It's the single Windows EXE file that requires no installation and can be run from anywhere on your hard drive.
The main program window is shown below.

Site search engine 1.7

Here's how to create your site search engine quickly...

1) Select the initial directory that contains the copy of your Web site, choose the desired file extensions, and press the "Make List" button.
The program will place the list of found files into the "Input Files" box.

2) Review the file list and uncheck the files that shouldn't be included in the search index.

3) Choose the name of the output file (default is "ss.html"), select the type of links in the results page, and press the "Create" button. The output index file will be created in the directory you have selected in the first step.

New features

1.1. Reducing the size of the output file
This site search engine is the most suitable for small and medium Web sites. If your site has hundreds of pages and the output index file is too big and takes too long time to load, you can reduce its size by ignoring some words...
  • "With digits" - if checked, words containing digits won't be included in the index file and will be ignored when searching your site.
  • "Plurals" - if checked, the site search engine will consider plurals to be the same as singulars, and only one variation will be included in the index file.
  • "Length under" - you can specify that short words (under 2-4 letters) won't be included in the index file and will be ignored when searching your site. The value 1 makes the site search engine include all words.
1.2. Creating the site map
Now you can also use this program as a free site map builder. If you select Site Map instead of Search Engine, the program will create the plain HTML file (no JavaScript) containing links to all selected pages. You can consider this file as a basis for creating your site map.

1.3. An additional option to reduce the size of output file

  • "Casual" - if checked, words appearing in the HTML file only once won't be included in the index. This can reduce the size of output file in half.
1.4. Improved coding
The algorithm of coding is changed. As a result, the program can index up to 1500 pages and the size of index file is slightly reduced.

1.5. Non-English pages
This version of site search engine correctly indexes non-English HTML pages which use high ASCII codes (128...255) to represent national characters.
Notes for non-English pages:

  • The "Plurals" check box works only with English words.
  • You may need to add the correct
    <meta http-equiv="Content-Type" content="text/html; charset=XXX">
    tag to the HEAD section of ss.html manually.
1.6. Improved coding
The program can index up to 8400 pages.

1.7. Fixed a bug
Fixed a bug in indexing non-English HTML pages.

1.8. Command line parameters
The program now accepts command line parameters, so that you can automate your work...
  ss [-dDIR] [-eEXT] [-sC] [-oFILE] [-aC] [-wC] [-pC] [-uN] [-nM] [-iFILE] [-c] [-x]
where...

  • DIR - Directory. If it contains spaces, enclose it in quotation marks.
  • EXT - File Extensions separated by semicolons.
  • C - Checkbox value (0 or 1).
  • FILE - Filename.
  • N - Length under (1 - 4).
  • M - Links type (1 - 5)
Notes:
  • All command line parameters are optional.
  • The options correspond with the window controls and their underlined characters.
  • The order of options isn't significant.
  • If the -dDIR (Directory) option is omitted, the -c (Create) and -x (Exit) options will be ignored.
  • The option -x means create and exit, i.e. it's the same as -c -x
  • You can use multiple -iFILE options to exclude multiple files from indexing.
Example:
  ss -d"c:\My Documents\HTML" -ehtm;html -imap.htm -icontact.htm -x

The simplest way to make up the command line is to start the program without any parameters, make your work and then copy to the command line only the options you've changed during your work.

What's new in the latest version (1.9) - (2006)

You can use wildcards when searching:

  • ? stands for any character.
  • * stands for any number of characters (including no characters at all).

If you're concerned about the appearance of the search results page, you can freely edit the output file (change colours, fonts, add your images, etc.).

To place the search box on your page, use the following code...

<form action="ss.html" target="ss">
<b>Search this site</b><br>
<input type=text name="s">
<input type=submit value="Go"
onClick="window.open('', 'ss', 'width=500,height=460,scrollbars,resizable')">
</form>
You can freely modify all elements of this code. Only make sure that the name of the input text field is "s" and the action attribute contains the proper path to the previously created index file.

For example, if your page resides in a subdirectory of the initial directory, you should use action="../ss.html" instead.

Here's the actual code used on this Web page...

<form action="../ss.html" target="ss">
<table width=140 cellspacing=0 border=1 bordercolor=#006699 bgcolor=#DCFFFF>
<tr><td align=center>
<strong>Search this site</strong><br>
<input type=text name="s" size=11
style="font:bold 10pt Courier,monospace">
<input type=submit value="Go"
onClick="window.open('', 'ss', 'width=500,height=460,scrollbars,resizable')">
</td></tr></table>
</form>
You can also use text links...
<a href="ss.html" target="ss"
onClick="window.open('', 'ss', 'width=500,height=460,scrollbars,resizable')">
Search this site</a>
In this case, the search window will initially contain links to all the pages within your site, and so it will act like a site map with search capabilities.

Of course, you need to upload the index file to your server. And don't forget to rebuild the index file after significant modifications of your site.

This page contains the search box where you can try this site search engine. For more information on using the search window, see Site Search Help.

FAQ

1) How can I perform all searching in the same window/frame without opening any additional windows?

Use the following code to place the search box on your page...

<form action="ss.html">
<b>Search this site</b><br>
<input type=text name="s">
<input type=submit value="Go">
</form>
and replace the following code in ss.html...
function C(l){
 if(BW && !BW.closed) {BW.location.href=l;BW.focus();}
 else BW=window.open(l,"");
}
with...
function C(l){
 location.href=l;
}
 
2) I use frames on my site and would like to place the search box in the top frame (name=TOP), search results - in the left frame (name=LEFT), and the selected page - in the right frame (name=RIGHT)

Use the following code to place the search box in the top frame...

<form action="ss.html" target="LEFT">
<b>Search this site</b><br>
<input type=text name="s">
<input type=submit value="Go">
</form>
 
and replace the following code in ss.html...
function C(l){
 if(BW && !BW.closed) {BW.location.href=l;BW.focus();}
 else BW=window.open(l,"");
}
 
with...
function C(l){
 parent.RIGHT.location.href=l;
} 
3) Is there a way to have all the pages indexed not show up if the search string is empty?

Replace the line from function MK(s)...

 for(i=0;i<FN;++i) AR[i]*=AI[i];
with...
 for(i=0;i<FN;++i) AR[i]+=AI[i];
and the line from function MT()...
 for(i=0;i<FN;++i) AR[i]=1;
with...
 for(i=0;i<FN;++i) AR[i]=0;

Hyperlink titles may have been abbreviated, (right click on the link and select properties for the full URL)

Top of the PageTop of the PageA double mouse click anywhere on the page will take you back to the top (except when over hyperlinks)

Last Updated: 04/03/2008 - Site Index - Utilities - Web Development - Neils Resource Web