You only need to reindex after changing attributes that are used by htdig
or htmerge. If the attribute is used only by htsearch, you don't need
to reindex, because the attribute won't change anything in the index.
See http://www.htdig.org/attrs.html for details about which programs
use which attributes.
The important questions are, what is the value of "config" in your search
form, and what is the value of "CONFIG_DIR" in your source tree's CONFIG
file? If CONFIG_DIR is something other than /home/I/the/user/htdig,
where your htdig.conf file is, or if the search form's setting of the
"config" input parameter is not "htdig", then htsearch will not use your
/home/I/the/user/htdig/htdig.conf file and will not see the changes you
made to it.
If these settings are correct, try running htsearch from the command
line, and see if the highlights are set correctly then. If so, there is
something causing htsearch not to be able to read your htdig.conf when
run as a CGI program. It could be a problem with permissions (htdig.conf
must be readable by the user ID under which the web server runs, and
all directories leading up to it must be searchable (i.e. executable)
by this user ID), or it could be a problem with CGI programs running
in a chroot'ed environment. If you rule out the former, as your host
about the latter.
According to Michael Olds:
> Thank you for this respose, I was supposed to get some kind of feedback from
> my host about this today, but I got no satisfaction. The tech seemed to
> think I needed to reindex in order for the changes to take place.
>
> This is the structure of what I have to play with:
>
> home/I/the/user/htdig
> htdig.conf (this is the file I changed and overwrote)
> bad_words.txt
> db.words.db
> db.wordlist
> dbdocs.index
> db.docdb
>
> home/I/the/user/public_html/search/
> index.html
> syntax.html
> search.html
> nomatch.html
> header.html
> footer.html
>
> I am guessing that if you don't think the site needs to be re-indexed in
> order for the changes to take place (and that makes sense to me too: after
> all the results are being generated after the indexing, no?); that what is
> really happening is that what I have is a config file that is referenced by
> the real config file in order for the host to be able to keep a boundry
> between me and their setup.
>
> As an aside, it seems to me it would not be such a bad idea to develop a
> user's manual for this kind of setup because I can see that users such as
> myself are likely to be on the increase in the not too distant future.
>
>
> Best Wishes!
> Michael Olds
> Los Altos California
> www.BuddhaDust.org
> ICQ#94992160
>
>
>
> -----Original Message-----
> From: Gilles Detillieux [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 02, 2001 6:58 AM
> To: Michael Olds
> Cc: Htdig
> Subject: Re: [htdig] basic config file change
>
>
> According to Michael Olds:
> > Just to see if I understood the most basic aspect of this, I added
> > formatting attributes to the Highlights in the config file: This is what I
> > did:
> >
> >
> > # Bad Word List. Words which should be excluded from searches.
> > #
> > bad_word_list: /home/bl/a/blabla_ablablablaka?/htdig/bad_words.txt
> >
> > # Format Highlight (Start and end highlight) (the searched for word is
> > highlighted)
> > # (always terminate)
> > start_highlight: <font color="#CC6600">
> > #
> > end_highlight: </font>
> >
> > The spaces between the : and the <value> are 1 tab stop as that was what
> was
> > done, apparently, in the example. I also tried spaces; this was done in
> > "Text Pad" a text editor.
> >
> > I saved the file and uploaded using "overwrite"; did a search, and there
> was
> > no change from the default black boldface
> >
> > Is there some kind of "refresh" needed to be done before such changes take
> > place?
>
> The format is correct, but are you sure you overwrote the correct
> config file? Is this the config file referred to by the "config" input
> parameter in your search form, and is it located in the same directory
> as is compiled into htsearch by the CONFIG_DIR makefile variable in your
> CONFIG file in the source directory?
>
> E.g., in my htdig-3.1.5 source directory, the CONFIG file defines
> CONFIG_DIR as "/etc/htdig", and my search.html form defines config as
> "scrc", so the correct config file for my site is /etc/htdig/scrc.conf,
> in which I have the following:
>
> start_highlight: <font color="#900099">
> end_highlight: </font>
>
> The leading spaces or tabs after the colon are stripped out by htsearch's
> attribute reading code.
>
> --
> Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
> Spinal Cord Research Centre WWW:
> http://www.scrc.umanitoba.ca/~grdetil
> Dept. Physiology, U. of Manitoba Phone: (204)789-3766
> Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
>
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba Phone: (204)789-3766
Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
_______________________________________________
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