Module
DirectGenerator
        DirectGenerator ( )
    
    A candidate generator that generates 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 | 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 | postFilter(analyzer) | Sets an analyzer that is applied to each of the generated tokens before they are passed to the actual phrase scorer.  | 
    
Object | preFilter(analyzer) | Sets an analyzer that is applied to each of the tokens passed to this generator. The analyzer is applied to the original tokens, not the generated tokens.  | 
    
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: 
  | 
    
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. 
  | 
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. 
  | 
postFilter
        Object postFilter ( analyzer )
    
    Sets an analyzer that is applied to each of the generated tokens before they are passed to the actual phrase scorer. 
  | 
preFilter
        Object preFilter ( analyzer )
    
    Sets an analyzer that is applied to each of the tokens passed to this generator. The analyzer is applied to the original tokens, not the generated tokens. 
  | 
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: 
 
  | 
toJSON
        String toJSON ( )
    
    Retrieves the internal  
  |