Greetings all,
It seems that the problem is that words in the word database have a=20
couple of numeric fields appended to them. My guess is that these=20
are new since 3.1, but I don't know what they are for.
The solution seems to be to write a second compare function which only=20
compares the string component of the keys.
Comments, anyone?
BTW, my internet connection has been very flaky of late, so apologies=20
if I'm slow in replying to anything.
Cheers,
Lachlan
On Sat, 11 Oct 2003 12:33, Lachlan Andrew wrote:
> "Speling" generates permuted forms of the query term, and check
> each to see if it is in the database, like so:
> if (!wordDB.Exists(initial)) // Seems weird, but this is correct
>
> The problem is that, whether or not the permutation is in the
> database, wordDB.Exists(...) always seems to return -1 ("true"),
> which means that the 'if' always fails (despite the comment saying
> it is correct :)
--=20
lh...@us...
ht://Dig developer DownUnder (http://www.htdig.org)
|