0

I have a Rails app, and I need the facet names of a certain model. Is there a method to get all the facet names defined?

Also it would be helpful to know the index names.

joeloui
  • 192
  • 1
  • 10
  • Not sure what you mean by facet names? Are you referring to the ASP concept? – Allyl Isocyanate May 28 '12 at 17:00
  • when you add a new facet you could pass an :as option like this: has properties.map(&:rooms_from).range_to_sql('rooms'), :type => :integer, :as => :rooms_range, :facet => true Like that you could refer to this facet as "rooms_range" – joeloui May 29 '12 at 17:37
  • BTW sorry, I didn't figure it out yet how to format comments – joeloui May 29 '12 at 17:42
  • Sorry as well, I didnt see you were refering to thinking sphynx. Unfortunately not very experienced with it – Allyl Isocyanate May 30 '12 at 18:51

0 Answers0