课程搜索只能搜索title

This commit is contained in:
yuanke 2016-10-10 14:00:10 +08:00
parent b94553edcd
commit 163abb70de
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class Syllabus < ActiveRecord::Base
query: query,
type:"most_fields",
operator: "or",
fields: ['title', 'description^0.5']
fields: ['title']
}
},
sort: {