In sunspot solr we could group records with similar attributes via facets. But is it possible to do a facet filter from two attributes?
I tried doing this on my search:
facet_search = User.search do
facet :attribute1, :attribute2
end
facet_search.facet(:attribute1, :attribute2)
With this I keep getting nil values and I am sure that there are records with similar values at attribute1 and attribute2.
Let's say that there are two records that have values at attribute1 as "orange". And those two records have values at attribute2 as "eagles".
Is there a feature in sunspot that I could use to group records based on two columns and how do I do it?
Thanks for the help in advance.