Again, I'll recommend reading the excellent article at this URL:

http://beta.devshed.com/Server_Side/search/

It describes using htdig's templating feature to get it to output parsable
data that you can turn into just about any format you want.  You run
htsearch from your shell script (the article uses PHP, but shell scripts
would work the same way), and then parse the output to create your own web
page.  I think you'll find it much more flexible, and you won't have to hack
the source to do it.

I guess this makes my 4 cents worth now, unless saying the same thing twice
doesn't count!
Best of luck no matter how you decide to do it...

Jamie

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Rick
> Richardson
> Sent: Sunday, November 07, 1999 2:48 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [htdig3-dev] Portable indexing
>
>
>
> Rick Richardson writes...
> >
> > I worked out a shell script to do what I wanted to do.  I have
> > attached said shell script "digdir".
> >
>
> After further testing, I find that there is a slight problem when the
> search results are longer than 1 page and you press "next" or page 2
> to get the next page of results.
>
> In that case, "htsearch" generates a CGI "GET" request.
>
> Unfortuantely, with a "GET" request I am unable to override the
> htsearch config file location like I can with a "POST" request, and so
> htsearch tries to use the "normal" config file under /var/lib/htdig,
> rather than the per-collection config file that I want it to use.
>
> To fix this issue, I am going to have to make a shell script wrapper
> for "htsearch" that converts any "GET" requests into pseudo-POST
> requests.  That means that a "stock" htdig installation will not be
> sufficient to use my tool.  Sadly, I can find no alternative.  Well,
> another alternative is to hack the htsearch source code.
>
> However, the shell script wrapper will be trivial to install, and it
> only needs to be installed once.
>
> -Rick
>
> --
> Rick Richardson  [EMAIL PROTECTED]   http://RickRichardson.freeservers.com/
>
> My current CI is 28.  I'm 41.  I need 14 more cylinders by my next
> birthday.  Two PWC's and an SUV ought to do it.  Thats my new goal.
>
> ------------------------------------
> To unsubscribe from the htdig3-dev mailing list, send a message to
> [EMAIL PROTECTED] containing the single word "unsubscribe" in
> the SUBJECT of the message.
>


------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to