I'm doing something like this:

ThinkingSphinx::Index.define :person, :with => :active_record, :delta => 
ThinkingSphinx::Deltas::SidekiqDelta do
  indexes(name, :as => : person_name)
  indexes(company.name, :as => :company_name)
  set_property(:field_weights => {: person_name => 50})
end


 Sphinx Query (19.0ms)  SELECT *, weight() AS w FROM `person_core`, 
`person_delta` WHERE MATCH('*David* *Townsend*') AND `sphinx_deleted` = 0 
ORDER BY `w` DESC, `updated_at` DESC LIMIT 0, 12 OPTION 
field_weights=(person_name=50)


If the same value is in company_name as person_name, the weight doesn't 
seem to work. What am I missing?

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to