0
0
Fork 0

Settle on default fuzziness of 1 (for now)

see https://groups.google.com/d/msg/bleve/vkVxnLMlXow/5qM1jL0ZEgAJ
This commit is contained in:
Ben Campbell 2016-10-04 15:00:50 +13:00
parent dfc78ca725
commit 11f18333fb
2 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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,
}
}