# Searching this website: some notes

## Properties of the engine

I implemented a simple search engine presenting links to pages that
contain all of the words entered. During entering, the program 
gives suggestions by looking for words that start with the same
characters that are already typed in.

## Programs

### Indexing the website

Indexing the website is done with a Python script
mkindex.py, with the aid of
the beautiful library 
[beautiful soup](https://www.crummy.com/software/BeautifulSoup/bs4/doc/)
to parse html pages. The program generates a file 
'searchdata.js' that contains
the pages found and the words found in those pages.

### Searching the index

Searching the index and presenting the results is done in the
program search.js written in javascript/jquery, accompanied by
some css in search.css. 

## Download

All files are available in the zip file
of this website: [download](../../wdcms/download).
Look in the folders 'ratrabbit' and 'ratrabbit/search'.

