I have "Provide spelling suggestions when less than 2 results are found" set. So I was surprised when a search for flexib* returned five results and a list of spelling suggestions! Worse, one of the suggested words was "flexible", which actually accounted for four of the five matches.
Checking the PHP, it appears the check for less than two matches is performed for each word found that matches the wildcard. I don't think that makes a lot of sense.
I'm going to modify the PHP myself to issue wildcard suggestions only when the total number of results is less than $SpellingWhenLessThan, but I'd appreciate it if this could be added to a list so that the CGI version can be fixed. (Assuming you agree it's an issue! If not, then the indexer option should be modified to make clear that this is per word behaviour.)
Finally, is the C++ source for the CGI version available?
Nick
Checking the PHP, it appears the check for less than two matches is performed for each word found that matches the wildcard. I don't think that makes a lot of sense.
I'm going to modify the PHP myself to issue wildcard suggestions only when the total number of results is less than $SpellingWhenLessThan, but I'd appreciate it if this could be added to a list so that the CGI version can be fixed. (Assuming you agree it's an issue! If not, then the indexer option should be modified to make clear that this is per word behaviour.)
Finally, is the C++ source for the CGI version available?
Nick
Comment