Hello,
in my class User a have this method:
def first_letter_name
self.name.first
end
Is there a way to index this method result as :beginning_letter for
example?
I want to facet search for the first letter of the name of each user.
Example:
define_index do
indexes name
indexes first_letter_name, :as => :beginning_letter, :facet =>
true
indexes email
indexes status, :facet => true
end
Thanks,
David Sousa
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" 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/thinking-sphinx?hl=en.