jsFind is a Perl module that can generate index for full text search engine in JavaScript.
SYNOPSIS
use jsFind;
my $t = new jsFind(B => 4);
my $f = 1;
foreach my $k (qw{minima ut dolorem sapiente voluptatem}) {
$t->B_search(Key => $k,
Data => {
"path" => {
t => "word $k",
f => $f },
},
Insert => 1,
Append => 1,
);
}
This module can be used to create index files for jsFind, powerful tool for adding a search engine to a CDROM archive or catalog without requiring the user to install anything.
Main difference between this module and scripts delivered with jsFind are:
You don't need to use swish-e to create index
you can programatically (and incrementaly) create index for jsFind
you can create more than one index and search them using same search.html page
You can also examine examples which come as tests with this module, for example t/04words.t or t/10homer.t.
jsFind
jsFind search engine was written by Shawn Garbett from eLucid Software. The search engine itself is a small piece of JavaScript (1.2 with level 2 DOM). It is easily customizable to fit into a current set of HTML. This JavaScript searches an XML index dataset for the appropriate links, and can filter and sort the results.
JavaScript code distributed with this module is based on version 0.0.3 which was current when this module development started. Various changes where done on JavaScript code to fix bugs, add features and remove warnings. For complete list see Changes file which comes with distribution.
This module has been tested using html/test.html with following browsers:
Mozilla FireFox 0.8 to 1.0
using DOM 2 document.implementation.createDocument
Internet Explorer 5.5 and 6.0
using ActiveX Microsoft.XMLDOM or MSXML2.DOMDocument
Konqueror 3.3
using DOM 2 document.implementation.createDocument
Opera 7.54 (without Java)
using experimental iframe implementation which is much slower than other methods.
If searching doesn't work for your combination of operating system and browser, please open html/test.html file and wait a while. It will search sample file included with distribution and report results. Reports with included test debugging are welcomed.
Product's homepage
Requirements:
· Perl