To use the Dictionary
mode for the TypeAhead
action, you must provide a dictionary file. This file contains a list of the words that you want to use as suggestions. It optionally also contains a score for the words, to determine the order in which they return in a results list.
The dictionary file must have one word on each line, in the format:
word,score
where word
is the word that you want to use as a suggestion, and score
is the score for that word. The score can be a positive or negative integer (terms with a higher score return first in a results list). If you do not add a score value, the default score is zero. The minimum allowed score value is -230, and the maximum allowed score is 230-1
For example:
gold,15 government,25 golf,20 golfer,19 gopher,12 gotcha,-10 gone
|