Hi,
In my project I need a functionality based on dynamic faceting.
Something like:
Lets say we have 4 models product, variants, option types and option values
OptionType has_many => option_values
Variant has_many => option_values
Product has_many => option_types
Product has_many => variants
I need to facet option type having its facet values as option_values
And option values are linked with product objects.
Example.
Color (Option Type)
-> Red (Option Value)
-> Green (Option Value)
-> Blue (Option Value)
Product has option type Color and variant has option value as Red.
Hence faceted value should be
Color
- Red (1)
Now, when I add another option type, lets say Size.
with option values.
Size (Option Type)
-> L (Option Value)
-> XL (Option Value)
-> XXL (Option Value)
And link Size with product and XL with one of the variant, then
Result should be something like,
Color
- Red(1)
- Green(0)
- Blue(0)
Size
- L (0)
- XL (1)
- XXL (0)
Is it possible to do this with ThinkingSphinx?