19 |
|
|
20 |
=item * |
=item * |
21 |
|
|
22 |
PostgreSQL (tested with version 7.4.8) with development libraries |
PostgreSQL (tested with versions 7.4 and 8.0) with development libraries |
23 |
|
|
24 |
=item * |
=item * |
25 |
|
|
26 |
Hyper Estraier (tested with versions 0.3.9 and 0.3.10) |
Hyper Estraier (tested with 0.5.0-1.0.0+, version newer than 0.9.6 are |
27 |
|
recommended) |
28 |
|
|
29 |
=back |
=back |
30 |
|
|
42 |
|
|
43 |
=item * |
=item * |
44 |
|
|
45 |
C<trivia.list.gz> from Internet Movie Database in data/ directory |
C<trivia.list.gz> from Internet Movie Database in C<data/> directory |
46 |
|
|
47 |
=item * |
=item * |
48 |
|
|
49 |
database "test" with permissions for current user |
PostgreSQL database C<test> with permissions for current user |
50 |
|
|
51 |
|
=item * |
52 |
|
|
53 |
|
Hyper Estraier node C<trivia> with permissions for C<admin> user. |
54 |
|
|
55 |
=back |
=back |
56 |
|
|
59 |
make |
make |
60 |
|
|
61 |
and see sample results. You will be asked your password once (via sudo) to |
and see sample results. You will be asked your password once (via sudo) to |
62 |
install pgest.so shared library in system-wide location so that PostgreSQL |
install C<pgest.so> shared library in system-wide location so that PostgreSQL |
63 |
could access it. |
could access it. |
64 |
|
|
65 |
Next, you will have to create test index. You have two options: |
Next, you will have to create test index. You have two options: |
79 |
|
|
80 |
=head2 Create index using Hyper Estraier perl bindings |
=head2 Create index using Hyper Estraier perl bindings |
81 |
|
|
82 |
For this, you will have to install perl bindings from |
Perl bindings for Hyper Estraier are available at |
83 |
|
|
84 |
L<http://hyperestraier.sourceforge.net/binding/> |
L<http://hyperestraier.sourceforge.net/binding/> |
85 |
|
|
86 |
|
However, they don't support node API (yet), so you will have to use |
87 |
|
my modified version which is available at |
88 |
|
L<http://svn.rot13.org/> in C<hyperestraier_wrappers> repository. |
89 |
|
|
90 |
If you installed bindings as documented in README file, you can use |
If you installed bindings as documented in README file, you can use |
91 |
perl binding to create index about three times faster. However, you will |
perl binding to create index about three times faster than using C<estcmd> |
92 |
fist need to create node I<trivia> using Hyper Estraier's administration |
(to be fair, I must say that creation of intermediate files take most time, |
93 |
interface at L<http://localhost:1978/masterui>. You will also need user |
not indexing). |
94 |
C<admin> with password C<admin> because those values are hard-coded in |
|
95 |
C<indexer.pl>. If you want to use different user on index name, feel |
However, you will first need to create node I<trivia> using Hyper Estraier's |
96 |
free to change script. |
administration interface at L<http://localhost:1978/masterui>. You will also |
97 |
|
need user C<admin> with password C<admin> because those values are |
98 |
|
hard-coded in C<indexer.pl>. If you want to use different user on index |
99 |
|
name, feel free to change script. |
100 |
|
|
101 |
cd data |
cd data |
102 |
make perl |
make perl |
118 |
FROM pgest( |
FROM pgest( |
119 |
-- path to index OR URL to node, user-name and password |
-- path to index OR URL to node, user-name and password |
120 |
-- you will need JUST ONE of following two lines, depending |
-- you will need JUST ONE of following two lines, depending |
121 |
-- on your usage described below |
-- on your usage described below, for direct access |
122 |
'/full/path/to/casket', |
'/full/path/to/casket', |
123 |
'http://localhost:1978/node/trivia', 'admin', 'admin', |
-- or for node API specify node URI, login, password |
124 |
|
-- and depth of search |
125 |
|
'http://localhost:1978/node/trivia', 'admin', 'admin', 42, |
126 |
-- query |
-- query |
127 |
'blade runner', |
'blade runner', |
128 |
-- additional attributes, use NULL or '' to disable |
-- additional attributes, use NULL or '' to disable |
163 |
different machine or update index while doing searches, so benefits of this |
different machine or update index while doing searches, so benefits of this |
164 |
approach are obvious. |
approach are obvious. |
165 |
|
|
|
B<Note:> Currently, there is no support to search more than one index (depth |
|
|
of search is always 0). This will be fixed. |
|
|
|
|
166 |
=head1 Who wrote this? |
=head1 Who wrote this? |
167 |
|
|
168 |
Hyper Estraier is written by Mikio Hirabayashi. |
Hyper Estraier is written by Mikio Hirabayashi. |