Hi,

We're using globalize3 for model translations & sunspot / solr for searches.

--
class Job < ActiveRecord::Base

  translates :title, :description

  searchable do
    # sorting
    string(:job_title) { title }
    string(:description)

    # keyword / fulltext searching
    text(:title, :default_boost => 2)
    text(:description)
  end

end

--
When saving a model, it's only indexing the last saved translation in the
solr index though.
Has anyone had any experience with indexing translated fields in a search
db?

Cheers,

-- 
Mark Brown

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to