我想弄清楚为什么using
规范不适用于associated against
字段。我的代码是:
include PgSearch
pg_search_scope :search,
{
:associated_against => {
:client => [:name, :email],
},
:against => [:description],
using: {
tsearch: {},
trigram: {threshold: 0.1}
}
}
对于字段description
,效果很好。
这里有任何提示吗?
提前致谢。