Skip to content

Commit

Permalink
降低搜索结果匹配度,以让 Ruby 这样一个词的能出来;
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Jan 7, 2016
1 parent b65c495 commit f32e722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/search_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def index
simple_query_string: {
query: params[:q],
default_operator: 'AND',
minimum_should_match: '90%',
minimum_should_match: '70%',
fields: ['title', 'body', 'name', 'login']
}
},
Expand Down

0 comments on commit f32e722

Please sign in to comment.