Hey,
I am trying to Highlight my search results. It works fine with single
models, but i have associations in my index
define_index do
indexes :question, :sortable => true
indexes :id, :as => :question_id
indexes answers(:text), :as => :answer_text
end
- if i do question.excerpts.question it works fine
- how to make it work for answer_text ? , I try question.excerpts.answers
and it returns a string and i cant dig deeper to
question.excerpts.answer[0].text
I want to highlight the text inside the answer .
Thanks in Advance
Mina Zaki
--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.