Simple Web Search
Edited on January 1st, 1970, 00:00 UT.
This is a relatively simple script that allows you to search a
SWISH-E index using the SWISH-E 1.X.X Binary and PHP3. OK, granted, it offers vastly more complex
searches than something like Altavista; however, I
still consider it fairly simple in terms of real searching power. SWS and SWISH-E are excellent for
search indices on the order of several hundred thousand files averaging in the 50 KB range.
This restriction would be solely affected by SWISH-E's scalability. Currently, physical
RAM is the biggest limiting factor for SWISH-E's ability to index a site.
This requires a working PHP 3.0.6 or better installation. PHP 3.0.8 or better is reccomended
due to bugs in with certian functions in older PHP versions. I have
tested this script on Linux Kernel 2.0.34, FreeBSD, Windows 98,NT4,2000,
Apache 1.2.4 & 1.3.3 & 1.3.6, PHP/3.0.6, and SWISH-E 1.2.4 & 1.3.1 & 1.3.2.
This script is being used on BSD Unix, Linux and Windows NT under Apache and MS-IIS by a few folks,
including myself. If you're using it on some other system, then I'm pleasantly not surprised.
Current Status
I have incorporated many suggestions and bug fixes from Jason Birch.
Thanks! All suggestions and bug fixes/reports are welcome.
Features in Beta 5
- Limit searches to Head, Title, Body, Heading(H#), Emphasis,
and Comment. This feature can be disabled via config option.
- Display specified meta tag contents. You may disable
this in the config.
- Multiple indices available via drop-down select box.
Indices are specified in a configuration array.
- Max number of hits via drop-down select box.
10, 50, 100, 500 are available. You can
add your own quite easily by editing a configuration array.
- Time required to complete search is printed at the
bottom of the results page. This is mandatory for the moment.
- Four levels of debugging available via config option. This is set
to level 2 by default. This will save you the trouble of setting it to level 2 when the
script doesn't work right for your first test run. (Ain't I an optimist?) You should set
debug to level 0 (disable) before making the script public.
- Seperate configuration file.
- Various other useful stuff.
Bug fixes and changes in Beta 5
- Fixed parenthetical searches e.g. "(John and Jane) or doe"
- Fixed problems introduced in beta 4 with next and previous buttons while using a single
search index on non-English (Specifically Russian and Estonian, but, likely most other
Central/Eastern languages) indices. Is that obscure or what?
- I'm sure there was a third bug which was fixed. Oh well, must've been even more obscure…
Bug fixes and changes in previous Betas
- Performance enhancements and code condensing.
- Began rewriting some of the common code and moving it
into a functions file.
- Fixed the wildcard and some boolean searches.
Wish-List
- META tag description support using SWISH-E's native
meta support.
- Implement other command-line options in a user-friendly manner.
- Move core code to a separate classes file.
- Add stable search support for multiple, simultaneous indices.
- Rewrite the SWS core in ANSI C with native SWISH-E search support.
SWISH-E would be used for indexing and command line searching, SWS would
act as a web searcher/interpreter. Tall order however very feasible.
(Dave's warped idea, in case anyone was wondering.)
- Send me a message if you have a wish to add to the list.
Examples
- Web Augur Search Engine Try searching for
"SWISH" in the various indices. This is using the latest development SWS.
Downloads
Similar Projects