Module
TermSuggester
        TermSuggester ( name )
    
    A suggester that suggests terms based on edit distance. 
  | 
Method Summary
| Returns | Name | Description | 
|---|---|---|
String | _type() | The type of ejs object. For internal use only. | 
Object | accuracy(a) | Sets the accuracy. How similar the suggested terms at least need to be compared to the original suggest text.  | 
    
Object | analyzer(analyzer) | Sets analyzer used to analyze the suggest text.  | 
    
Object | field(field) | Sets the field used to generate suggestions from.  | 
    
Object | maxEdits(max) | Sets the maximum edit distance candidate suggestions can have in order to be considered as a suggestion.  | 
    
Object | maxInspections(max) | The factor that is used to multiply with the size in order to inspect more candidate suggestions.  | 
    
Object | maxTermFreq(max) | Sets a maximum threshold in number of documents a suggest text token can exist in order to be corrected.  | 
    
Object | minDocFreq(min) | Sets a minimal threshold of the number of documents a suggested term should appear in.  | 
    
Object | minWordLen(len) | Sets the minimum length a suggest text term must have in order to be corrected.  | 
    
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 | sort(s) | Sets the sort mode. Valid values are: 
  | 
    
Object | stringDistance(s) | Sets what string distance implementation to use for comparing how similar suggested terms are. Valid values are: 
  | 
    
Object | suggestMode(m) | Sets the suggest mode. Valid values are: 
  | 
    
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   | 
    
Method Detail
accuracy
        Object accuracy ( a )
    
    Sets the accuracy. How similar the suggested terms at least need to be compared to the original suggest text. 
  | 
analyzer
        Object analyzer ( analyzer )
    
    Sets analyzer used to analyze the suggest text. 
  | 
field
        Object field ( field )
    
    Sets the field used to generate suggestions from. 
  | 
maxEdits
        Object maxEdits ( max )
    
    Sets the maximum edit distance candidate suggestions can have in order to be considered as a suggestion. 
  | 
maxInspections
        Object maxInspections ( max )
    
    The factor that is used to multiply with the size in order to inspect more candidate suggestions. 
  | 
maxTermFreq
        Object maxTermFreq ( max )
    
    Sets a maximum threshold in number of documents a suggest text token can exist in order to be corrected. 
  | 
minDocFreq
        Object minDocFreq ( min )
    
    Sets a minimal threshold of the number of documents a suggested term should appear in. 
  | 
minWordLen
        Object minWordLen ( len )
    
    Sets the minimum length a suggest text term must have in order to be corrected. 
  | 
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. 
  | 
sort
        Object sort ( s )
    
    Sets the sort mode. Valid values are: 
 
  | 
stringDistance
        Object stringDistance ( s )
    
    Sets what string distance implementation to use for comparing how similar suggested terms are. Valid values are: 
 
  | 
suggestMode
        Object suggestMode ( m )
    
    Sets the suggest mode. Valid values are: 
 
  | 
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  
  |