mruby: support similar search with custom threshold