Hey all:

I fixed my URL problem. I re-wrote the template to omit the base URL and
include absolute links to the main web server. I'll upload the perl file
tonight for anyone who wants it.

I have a series of questions that are quite possibly in the FAQ. My
apologies if they are, I'll hunt through there as well. Just in case
though, here are the questions:

1. I thought EXCERPT was supposed to mean "the place where the word
appears in the page." But if you look at my search results:

http://search.foreign-policy-dialogue.ca/cgi-bin/htsearch?config=fr&restrict=fr&restrict=&words=iraq
It's not the excerpt that's displayed. I'm not sure what it's actually
displaying though. (I know what it's showing on the page, but I'm not sure
why.)

2. Is there a way to ignore all <meta> information? I've set
meta_description_factor: 0, but does that get the keywords as well?

3. I spent yonks of time figuring out how to set up English and French
databases, but our web site isn't perfect and contains French text on
English pages. HOWEVER the engine is ok with this and displays accents
correctly even when using the english config file (with no locale set):
http://search.foreign-policy-dialogue.ca/cgi-bin/htsearch?config=en&restrict=&words=iraq
That's cool and all, but how does it know? Just because the locale is
intalled on the system? Do I actually need to maintain two different
databases? I do htfuzzy accents on the French databases but not on
English. Is that right? I think it is, but now I'm starting to question
myself.

4. I'd like to put the SESSION=blah back into the search results links.
Even though the session is in the URL, it's not getting put back into the
links. See:
http://search.foreign-policy-dialogue.ca/cgi-bin/htsearch?config=en&SESSION=5672c196e148691c7f305e4d61f501a9&restrict=&words=iraq
I've added $(SESSION) to the HTML templates. Isn't that what you're
supposed to do for HTML variables that you want to replace? In the
wrapper.html file it looks like this:
<a href="http://blah.com?SESSION=$(SESSION)">nav link</a>. But as you can
see in the URL above SESSION= is there, but not the actually value...

From: http://htdig.org/hts_templates.html
There are many variables that can be substituted into these templates. Not
all of them make sense for each file, so not all of them will be
substituted for every file. In addition, all of the standard CGI
environment variables are available, and listed in the cgi specification.
Variables will be substituted normally with the format $(VAR), escaped for
use in a URL with the format $%(VAR), URL-encoding decoded with the format
$=(VAR), and HTML-escaped with the format $&(VAR).

Thanks for all of your help!!

--
Emma Jane Hogbin
Xtrinsic




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to