Module
CompletionSuggester
        CompletionSuggester ( name )
    
    A suggester that allows basic auto-complete functionality. 
  | 
Method Summary
| Returns | Name | Description | 
|---|---|---|
String | _type() | The type of ejs object. For internal use only. | 
Object | analyzer(analyzer) | Sets analyzer used to analyze the suggest text.  | 
    
Object | editDistance(d) | Maximum edit distance (fuzziness), defaults to 1. Automatically enables fuzzy suggestions when set to any value.  | 
    
Object | field(field) | Sets the field used to generate suggestions from.  | 
    
Object | fuzzy(trueFalse) | Enable fuzzy completions which means a can spell a word incorrectly and still get a suggestion.  | 
    
Object | minLength(m) | Minimum length of the input before fuzzy suggestions are returned, defaults to 3. Automatically enables fuzzy suggestions when set to any value.  | 
    
Object | prefixLength(l) | Minimum length of the input, which is not checked for fuzzy alternatives, defaults to 1. Automatically enables fuzzy suggestions when set to any value.  | 
    
Object | shardSize(s) | Sets the maximum number of suggestions to be retrieved from each individual shard.  | 
    
Object | size(s) | Sets the number of suggestions returned for each token.  | 
    
Object | text(txt) | Sets the text to get suggestions for. If not set, the global suggestion text will be used.  | 
    
String | toJSON() | Retrieves the internal   | 
    
Object | transpositions(trueFalse) | Sets if transpositions should be counted as one or two changes, defaults to true when fuzzy is enabled. Automatically enables fuzzy suggestions when set to any value.  | 
    
Object | unicodeAware(trueFalse) | Sets all are measurements (like edit distance, transpositions and lengths) in unicode code points (actual letters) instead of bytes. Automatically enables fuzzy suggestions when set to any value.  | 
    
Method Detail
analyzer
        Object analyzer ( analyzer )
    
    Sets analyzer used to analyze the suggest text. 
  | 
editDistance
        Object editDistance ( d )
    
    Maximum edit distance (fuzziness), defaults to 1. Automatically enables fuzzy suggestions when set to any value. 
  | 
field
        Object field ( field )
    
    Sets the field used to generate suggestions from. 
  | 
fuzzy
        Object fuzzy ( trueFalse )
    
    Enable fuzzy completions which means a can spell a word incorrectly and still get a suggestion. 
  | 
minLength
        Object minLength ( m )
    
    Minimum length of the input before fuzzy suggestions are returned, defaults to 3. Automatically enables fuzzy suggestions when set to any value. 
  | 
prefixLength
        Object prefixLength ( l )
    
    Minimum length of the input, which is not checked for fuzzy alternatives, defaults to 1. Automatically enables fuzzy suggestions when set to any value. 
  | 
shardSize
        Object shardSize ( s )
    
    Sets the maximum number of suggestions to be retrieved from each individual shard. 
  | 
size
        Object size ( s )
    
    Sets the number of suggestions returned for each token. 
  | 
text
        Object text ( txt )
    
    Sets the text to get suggestions for. If not set, the global suggestion text will be used. 
  | 
toJSON
        String toJSON ( )
    
    Retrieves the internal  
  | 
transpositions
        Object transpositions ( trueFalse )
    
    Sets if transpositions should be counted as one or two changes, defaults to true when fuzzy is enabled. Automatically enables fuzzy suggestions when set to any value. 
  | 
unicodeAware
        Object unicodeAware ( trueFalse )
    
    Sets all are measurements (like edit distance, transpositions and lengths) in unicode code points (actual letters) instead of bytes. Automatically enables fuzzy suggestions when set to any value. 
  |