Hi everybody,
Well, first, i'm using htdig-3.2.0b3.
I am using htdig to dig different parts of my web server. So, I create more than one
database and provide search in each of these ones. I also dig the all web server to
provide a full search. But as you probably know, my full database is redundant with
other ones !!!
space and time are lost...
So, I was happy to find the 'collection_names' attribut !!! But it seems to me that it
has no effect or I don't know how to use it.
First, I tried to write a conf file with collection_names: base1 base2
I have base1.conf and base2.conf in my conf dir and they are working as I use them
separately.
But only base1 is used for the search !
Well, of course, because I have database_base pointing to base1 database !!!
So I remove the database_base, but an error occurs because htsearch need this attribute
I read this in the source code 'htsearch.cc' lines 307 to 312 :
const String word_db = config["word_db"];
if (access(word_db, R_OK) < 0)
{
reportError(form("Unable to read word database file '%s'\nDid you run
htmerge?",
word_db.get()));
}
So :
1. If i don't have database_base ---> an error occurs
2. If i have database_base ---> the base is used and collection_names has no effect !
So I tried htsearch inline as Gilles Detillieux said :
./htsearch "config=base1;config=base2;words=test"
and it works... well, but htsearch is mainly used to be call as a cgi !!!
ok, i change my search form and put the lines :
<input type=hidden name=config value=base1>
<input type=hidden name=config value=base2>
('words' is provided in the form)
and it works too... but wait : 2 things !!!
1. the 'base1' and 'base2' names appears in the source code and I don't want them to
appear
2. I don't use collection_names anywhere ! what can I do to use it in the way it is
designed to ??
please if you have a working example, posting it will be greatly appreciated !
who is using collection_names not in vain ??? thanks for all your replies !
--olivier l.
--
_______________
___/ Olivier LAMER \_____________________________________________
mailto:[EMAIL PROTECTED] Apogée-Communications
1, Rue Jean Rostand
91893 ORSAY CEDEX
http://www.apogee-com.fr FRANCE
_________________________________________________________________
_______________________________________________
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