Skip to content

Commit

Permalink
Settle on default fuzziness of 1 (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcampbell committed Oct 4, 2016
1 parent dfc78ca commit 11f1833
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion query.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func NewDocIDQuery(ids []string) *query.DocIDQuery {
// NewFuzzyQuery creates a new Query which finds
// documents containing terms within a specific
// fuzziness of the specified term.
// The default fuzziness is 2.
// The default fuzziness is 1.
//
// The current implementation uses Levenshtein edit
// distance as the fuzziness metric.
Expand Down
4 changes: 2 additions & 2 deletions search/query/fuzzy.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ type FuzzyQuery struct {
// NewFuzzyQuery creates a new Query which finds
// documents containing terms within a specific
// fuzziness of the specified term.
// The default fuzziness is 2.
// The default fuzziness is 1.
//
// The current implementation uses Levenshtein edit
// distance as the fuzziness metric.
func NewFuzzyQuery(term string) *FuzzyQuery {
return &FuzzyQuery{
Term: term,
Fuzziness: 2,
Fuzziness: 1,
}
}

Expand Down

0 comments on commit 11f1833

Please sign in to comment.