Default Fuzziness?

54 views
Skip to first unread message

Ben Campbell

unread,
Oct 3, 2016, 9:11:18 PM10/3/16
to bleve
Quick question: what should the default fuzziness of a fuzzy query be?

bleve.NewFuzzyQuery() says it should be 2, but querystringquery parser says 1
(see search/query/query_string_query_parser_test.go:319).

I'm happy to work up a patch to rectify the discrepancy if wanted.

Thanks,
Ben.

Marty Schoch

unread,
Oct 3, 2016, 9:53:11 PM10/3/16
to bl...@googlegroups.com
Well, the longer answer is that the default for both should be "auto", where the fuzziness depends on the length of the term.  But, that is a slightly move involved changed.  For now I'd be OK with making 1 the default in both places.

marty

--
You received this message because you are subscribed to the Google Groups "bleve" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bleve+unsubscribe@googlegroups.com.
To post to this group, send email to bl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bleve/ec74bc77-80da-4ce3-84e7-c5f5bfbc5ba4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ben Campbell

unread,
Oct 3, 2016, 10:05:30 PM10/3/16
to bleve
On Tuesday, October 4, 2016 at 2:53:11 PM UTC+13, Marty Schoch wrote:
Well, the longer answer is that the default for both should be "auto", where the fuzziness depends on the length of the term.  But, that is a slightly move involved changed.  For now I'd be OK with making 1 the default in both places.

OK, now done and (trivial) pull request issued on github.

Ben.
 
Reply all
Reply to author
Forward
0 new messages