|
|
|
|
|
|
|
|
|
|
|
|
|
See the documentation for hyperestraier:
/usr/share/doc/hyperestraier/index.html
man estcmd
on sisu_hyperestraier:
man sisu_hyperestraier
/usr/share/doc/sisu/sisu-markup/sisu_hyperestraier/index.html
NOTE: the examples that follow assume that sisu output is placed in the directory /home/ralph/sisu_www
(A) to generate the index within the webserver directory to be indexed:
estcmd gather -sd [index name] [directory path to index]
the following are examples that will need to be tailored according to your needs:
cd /home/ralph/sisu_www
estcmd gather -sd casket /home/ralph/sisu_www
you may use the 'find' command together with 'egrep' to limit indexing to particular document collection directories within the web server directory:
find /home/ralph/sisu_www -type f | egrep '/home/ralph/sisu_www/sisu/.+?.html$' |estcmd gather -sd casket -
Check which directories in the webserver/output directory (~/sisu_www or elsewhere depending on configuration) you wish to include in the search index.
As sisu duplicates output in multiple file formats, it it is probably preferable to limit the estraier index to html output, and as it may also be desirable to exclude files 'plain.txt', 'toc.html' and 'concordance.html', as these duplicate information held in other html output e.g.
find /home/ralph/sisu_www -type f | egrep '/sisu_www/(sisu|bookmarks)/.+?.html$' | egrep -v '(doc|concordance).html$' |estcmd gather -sd casket -
from your current document preparation/markup directory, you would construct a rune along the following lines:
find /home/ralph/sisu_www -type f | egrep '/home/ralph/sisu_www/([specify first directory for inclusion]|[specify second directory for inclusion]|[another directory for inclusion? ...])/.+?.html$' | egrep -v '(doc|concordance).html$' |estcmd gather -sd /home/ralph/sisu_www/casket -
(B) to set up the search form
(i) copy estseek.cgi to your cgi directory and set file permissions to 755:
sudo cp -vi /usr/lib/estraier/estseek.cgi /usr/lib/cgi-bin
sudo chmod -v 755 /usr/lib/cgi-bin/estseek.cgi
sudo cp -v /usr/share/hyperestraier/estseek.* /usr/lib/cgi-bin
[see estraier documentation for paths]
(ii) edit estseek.conf, with attention to the lines starting 'indexname:' and 'replace:':
indexname: /home/ralph/sisu_www/casket
replace: ^file:///home/ralph/sisu_www {!}
replace: /index.html?${{!}}/
(C) to test using webrick, start webrick:
sisu -W
and try open the url: ‹http://localhost:8081/cgi-bin/estseek.cgi›