RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: shamil614
Does anybody know how to include the author's name in the facet results. I'm trying to figure out if I can avoid looking up the Author for each facet:
Author.find(facet['term']).name
I was trying to see if I could get the facet to return more than one value like this:
facet "authors" do terms [:author_id, :name] end
Does anybody know how to include the author's name in the facet results. I'm trying to figure out if I can avoid looking up the Author for each facet:
I was trying to see if I could get the facet to return more than one value like this: