5 |
use warnings; |
use warnings; |
6 |
use HTML::Entities; |
use HTML::Entities; |
7 |
|
|
8 |
our $VERSION = '0.04'; |
our $VERSION = '0.05'; |
9 |
|
|
10 |
use Exporter 'import'; |
use Exporter 'import'; |
11 |
use Carp; |
use Carp; |
18 |
|
|
19 |
=head1 NAME |
=head1 NAME |
20 |
|
|
21 |
jsFind - generate index for jsFind using B-Tree |
jsFind - generate index for full text search engine in JavaScript |
22 |
|
|
23 |
=head1 SYNOPSIS |
=head1 SYNOPSIS |
24 |
|
|
53 |
|
|
54 |
=item * |
=item * |
55 |
|
|
56 |
You can programatically (and incrementaly) create index for jsFind |
you can programatically (and incrementaly) create index for jsFind |
57 |
|
|
58 |
|
=item * |
59 |
|
|
60 |
|
you can create more than one index and search them using same C<search.html> |
61 |
|
page |
62 |
|
|
63 |
=back |
=back |
64 |
|
|
65 |
You can also examine examples which come as tests with this module, |
You can also examine examples which come as tests with this module, |
66 |
for example C<t/04words.t>. |
for example C<t/04words.t> or C<t/10homer.t>. |
67 |
|
|
68 |
|
=head2 jsFind |
69 |
|
|
70 |
|
jsFind search engine was written by Shawn Garbett from eLucid Software. |
71 |
|
The search engine itself is a small piece of JavaScript (1.2 with level 2 |
72 |
|
DOM). It is easily customizable to fit into a current set of HTML. This |
73 |
|
JavaScript searches an XML index dataset for the appropriate links, and can |
74 |
|
filter and sort the results. |
75 |
|
|
76 |
|
JavaScript code distributed with this module is based on version 0.0.3 which |
77 |
|
was current when this module development started. Various changes where done |
78 |
|
on JavaScript code to fix bugs, add features and remove warnings. For |
79 |
|
complete list see C<Changes> file which comes with distribution. |
80 |
|
|
81 |
|
This module has been tested using C<html/test.html> with following browsers: |
82 |
|
|
83 |
|
=over 5 |
84 |
|
|
85 |
|
=item Mozilla FireFox 0.8 to 1.0 |
86 |
|
|
87 |
|
using DOM 2 C<document.implementation.createDocument> |
88 |
|
|
89 |
|
=item Internet Explorer 5.5 and 6.0 |
90 |
|
|
91 |
|
using ActiveX C<Microsoft.XMLDOM> or C<MSXML2.DOMDocument> |
92 |
|
|
93 |
|
=item Konqueror 3.3 |
94 |
|
|
95 |
|
using DOM 2 C<document.implementation.createDocument> |
96 |
|
|
97 |
|
=item Opera 7.54 (without Java) |
98 |
|
|
99 |
|
using experimental iframe implementation which is much slower than other methods. |
100 |
|
|
101 |
|
=back |
102 |
|
|
103 |
|
If searching doesn't work for your combination of operating system and |
104 |
|
browser, please open C<html/test.html> file and wait a while. It will search sample |
105 |
|
file included with distribution and report results. Reports with included |
106 |
|
test debugging are welcomed. |
107 |
|
|
108 |
=head1 jsFind methods |
=head1 jsFind methods |
109 |
|
|