htdig fails when allow_numbers:true

Support for webhosts that use CentOS
Post Reply
theorist
Posts: 121
Joined: 2005/05/19 15:09:45

htdig fails when allow_numbers:true

Post by theorist » 2005/05/19 15:47:56

Hi

I have a fairly simple local website which I index with htdig. If I use the option

allow_numbers:true

in my /etc/htdig/htdig.conf file so that I can search on numbers, rundig returns the following error at the end:

DB2 problem...: missing or empty key value specified

Searchs still work but no numbers have been indexed. Without the "allow_numbers: true" option everything works perfectly but obviously no numbers have been indexed. I get this behaviour even if I index just a single page (with some numbers). Can anyone confirm this, and better still suggest how to get it working. I am running CentOS4.

Thanks
Andy

theorist
Posts: 121
Joined: 2005/05/19 15:09:45

Re: htdig fails when allow_numbers:true

Post by theorist » 2005/05/24 14:25:54

OK - I've resolved it.

Everything works fine if you use a vanilla version of htdig (compiled from the official sources). The problem comes because one of the redhat patches (htdig-3.1.5-rh.patch) adds two lines at the end of /usr/bin/rundig:

/usr/bin/htfuzzy $verbose metaphone
/usr/bin/htfuzzy $verbose soundex

Comment these two lines out and numbers should be indexed - presumably at the expense of not being able to use fuzzy matching.
Andy

Post Reply

Return to “CentOS 4 - Webhosting Support”