Spelling Suggestion threshold

Post Reply
rjshelq
Posts: 82
Joined: Thu Nov 17, 2005 3:25 pm

Spelling Suggestion threshold

Post by rjshelq »

Presently, it seems that Webinator only makes spelling suggestions when there are zero or one query results reported. Is it possible to change that threshold so that any number of results less than, say, five is accompanied by the spelling suggestions? If so... please point me in the right direction for tweaking the script.

Thanks.
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Spelling Suggestion threshold

Post by John »

There should be some code similar to the following in the search function. You can change the $loop eq 1 to $loop lte 3 to give suggestions for 3 or fewer results.

<CASE lte 5><!-- 5 or fewer hits -->
<if "Y" eq $SSc_spelling>
<if $jump eq '' and $loop eq 1>

If you look for <spellchecker nhits= you will find all the places the spell checker is called.
John Turnbull
Thunderstone Software
Post Reply