Nothing that straightforward, but you can call
Sunspot::Setup.for(MyModel) and that will bring you back an object you
can introspect.
Mat
> --
> You received this message because you are subscribed to the Google Groups "Sunspot" group.
> To post to this group, send email to ruby-s...@googlegroups.com.
> To unsubscribe from this group, send email to ruby-sunspot...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ruby-sunspot?hl=en.
>
>
Sunspot::Setup.for(Klass).fields.map(&:name)
returns the symbols/field names used in the searchable block to create the index for Klass.
Mat advises this is not part of the public API.
http://blog.locomotivellc.com/post/6321969631/sunspot-introspection
All, please let me know if you see errors.
Martin