On Sun, Jan 06, 2002 at 09:16:39PM -0800, Michael A Nachbaur wrote:
> Is anyone familiar with any search/indexing programs that are
> AxKit-friendly? I'm looking at ht://Dig, but there's no way I'll be able to
> integrate it with AxKit without some serious hacks.
>
> Are there any good indexing / searching programs available that I could plug
> in with AxKit? For instance, something callable from an XSP page, or some
> mod_perl handler that I can use Apache::Filter?
>
> What I'm looking for is something that, when it performs a search and comes
> up with results, that I can pass through an XSL stylesheet to display search
> results using my look&feel.
I did succeed in getting htdig to work for me, exactly as you suggest.
Step one is calling htsearch from a simple Apache::Registry file (just a
pipe).
Step two is writing templates in XML instead of HTML.
Step three is some search and replace because htdig inserts HTML form
tags in HTML syntax.
Step four is using the Apache::Filter stuff.
Attached you'll find my script, here's how it's configured in
httpd.conf:
<FilesMatch "\.mp$">
Options +ExecCGI
SetHandler perl-script
PerlSetVar Filter On
AxProvider Apache::AxKit::Provider::Filter
PerlHandler Apache::RegistryFilter AxKit
</FilesMatch>
The templates need to be well-formed XML except for the special htdig
"tags".
I'm so happy with this way of using the same styling for static and
dynamic content that I might actually write more dynamic stuff to output
XML instead of and/or together with yet another template mechanism.
--
Bart.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]