Site Archives sphinx
When Ultrasphinx is used with polymorphic associationsā¦
Lets first consider simple has_many and belongs_to associations as:
class Article < ActiveRecord::Base
has_many :comments
end
class Comment < ActiveRecord::Base
belongs_to :article
end
Now if you wish to index the title of associated article with comment for searching, you just need to add ” is_indexed :fields => :body, :include => [{ :association_name => 'article', :field => 'title', :as=> [...]
When Ultrasphinx is used with STIā¦
Hi Guys, it has been a long time since I last posted. I had worked on several things since then, and have couple of posts pending/draft. One of those posts is related to Ultrasphinx, when it is used with STI models.
For those who are new to Ultrasphinx: Ultrasphinx is a rails plugin and client to [...]
Find It Quickly
Find what you're looking for quickly by using our keyword search. Can't find it? Try our links below.