In 14.14 11/03/99 +0800, hai scritto:
>
>Hi,
>
>I am in need of a command-line based htsearch, which takes the search terms
>on the command line and will output all the results,  not divided by
>pages, on stdout.
>
>This is because I am merging an htdig index search with a SQL database
>lookup... when the user does a query, it will look through the SQL database
>first, and then through htdig.  Then the code I will write will merge the
>output into a single HTML page.
>
>If this is not possible, then I'll just parse the output?
>
>Ideas?
>
>Thanks,

Ciao, Miguel

Regarding the format of the stdout, I think there's no problem. You only
need to edit a template file (the wrapper) with no header and no footer and
containing only $(HTSEARCH_RESULTS). Then edit a template for the result,
containing only, for example, $(URL). Of course you should have to edit the
template map, by the way.

The result should be:

http:/www.pippo.com/home.htm
http:/www.pippo.com/htm/pluto.htm
http:/www.pippo.com/htm/paperino.htm
http:/www.topolino.com/index.htm

and go on ...


The fact of passing the words and the format, is the biggest trouble: I
think, but I am not sure and probably Geoof and Gilles could give more help
to you than me, is to set 2 environment variables such as WORDS and FORMAT.
But, I repeat, I'm not sure ... Please, forgive me ... The number of
matches per pages could be controlled from the main configuration file.

Is it right?

CIAO
Gabriele


----------------------------------

Gabriele Bartolini
U.O. Rete Civica - Comune di Prato
Prato - Italia - Europa

e-mail: [EMAIL PROTECTED]
http://www.po-net.prato.it

----------------------------------


------------------------------------
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