code: func (ngram *NGramIndex) Search(input string, threshold ...float64) ([]SearchResult, error) {
  	if ngram.index == nil {
  		ngram.init()
  	}
  	tval, error := validateThresholdValues(threshold)
  	if error != nil {
  		return nil, error
  	}
  	return ngram.match(input, tval)
  }
docs: // Search for matches between query string (input) and indexed strings.
  // First parameter - threshold is optional and can be used to set minimal similarity
  // between input string and matching string. You can pass only one threshold value.
  // Results is an unordered array of 'SearchResult' structs. This struct contains similarity
  // value (float32 value from threshold to 1.0) and token-id.