According to Nick Boyce:
> On Wed, 26 Sep 2001 20:11:10 -0700 (PDT), "Joe R. Jah"
> <[EMAIL PROTECTED]> wrote:
> > To use the url_part_aliases attribute you'll need to set up a config
> > file for indexing and a separate one for searching.
> > 
> > htdig.conf:
> > url_part_aliases:    http://123.123.123.123/        *1
> > 
> > htsearch.conf:
> > url_part_aliases:    /                      *1
> 
> Hmm.  I had seen that advice in the help, but still don't understand
> why just one config file and one url_part_aliases directive isn't
> enough.  If my original htdig indexing run stores URLs beginning
> http://123.123.123.123 in the database, then surely 
> 
>   in a single shared htdig.conf:
>     url_part_aliases:    /    http://123.123.123.123/
> 
> should be enough to get the required relative URL generated by
> htsearch ?

Surely not!  If you put that line into a shared htdig.conf,
then htdig will try to encode each and every slash in a URL as
"http://123.123.123.123/"; before putting the URL in the database.
Then, htsearch reverses the encoding to get back the original slashes
in the URL.  All you've accomplished is to waste a lot of space in the
database.  Definitely not what you want.

I think you're mistakenly assuming that only htsearch uses
url_part_aliases, when in fact both htdig and htsearch use it (as do the
other ht://Dig programs for that matter).  You say that your "original
htdig indexing run stores URLs beginning http://123.123.123.123 in the
database," but that's not what you want it to do because you want to
get rid of that part.

If you use Joe's suggestion, the "http://123.123.123.123/"; is encoded
as "*1" in the database, and htsearch decodes this as a single slash.

On the other hand, if you run htdig with no url_part_aliases setting at
all, and then run htsearch with the url_part_aliases setting you proposed,
it *might* work (assuming the common_url_parts encodings don't prevent
the URL codec from recognizing the right hand string), but you still
need two different config files.

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

Reply via email to