0
0
Fork 0

fix godoc around NewFuzzyQuery function

closes #166
This commit is contained in:
Marty Schoch 2015-03-02 09:29:06 -05:00
parent 221664977d
commit 5ac9583370
1 changed files with 7 additions and 3 deletions

View File

@ -23,9 +23,13 @@ type fuzzyQuery struct {
BoostVal float64 `json:"boost,omitempty"`
}
// NewPrefixQuery creates a new Query which finds
// documents containing terms that start with the
// specified prefix.
// NewFuzzyQuery creates a new Query which finds
// documents containing terms within a specific
// fuzziness of the specified term.
// The default fuzziness is 2.
//
// The current implementation uses Leveshtein edit
// distance as the fuzziness metric.
func NewFuzzyQuery(term string) *fuzzyQuery {
return &fuzzyQuery{
Term: term,