黒点の宝石で検索するのに問題があります。オブジェクトテナントでユーザーのメールアドレスを検索したい。
テナントには多くのユーザーがいます
テナントで私はこれをしました:
searchable do
text :name, :notifications_email
text :users do
users.map(&:email)
end
end
との検索は正常name
にnotifications_email
機能しますが、ユーザーの電子メールを検索しても結果が見つかりません。
私はコンソールでこれを行いました:
s = Tenant.solr_search do fulltext "info" end
私はこのオブジェクトを取得します:
<Sunspot::Search:{:fq=>["type:Tenant"], :q=>"info", :fl=>"* score", :qf=>"name_text notifications_email_text users_text", :defType=>"dismax", :start=>0, :rows=>30}>
私を混乱させるのは、このようなものusers_text
である必要はないということです。users_email_text