Skip to content

Commit f32e722

Browse files
committed
降低搜索结果匹配度,以让 Ruby 这样一个词的能出来;
1 parent b65c495 commit f32e722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/search_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def index
55
simple_query_string: {
66
query: params[:q],
77
default_operator: 'AND',
8-
minimum_should_match: '90%',
8+
minimum_should_match: '70%',
99
fields: ['title', 'body', 'name', 'login']
1010
}
1111
},

0 commit comments

Comments
 (0)