There's something I don't understand. In searchindex.cpp the hash is calculated by using 2 chars (numIndexEntries = 256*256). Why, then, are the words inserted in earchIndex::addWord() using wStr=wStr.lower()? Wouldn't it be better to use the full range of the 256*256 hash and encode case-sensitive words? This is documenting C code, afterall.
N.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
There's something I don't understand. In searchindex.cpp the hash is calculated by using 2 chars (numIndexEntries = 256*256). Why, then, are the words inserted in earchIndex::addWord() using wStr=wStr.lower()? Wouldn't it be better to use the full range of the 256*256 hash and encode case-sensitive words? This is documenting C code, afterall.
N.