Hi

I have "products" which belong to one or more "groups".
Products are documents in Solr, while the groups are fields (eg. 
group_1_bool:true).

For example:

Prod1 => group1, group2
Prod2 => group1, group2
Prod3 => group1
Prod4 => group2

I would like to execute a query which results in the groups with their 
products. That is, the result should be something like:

Group1 => Prod1, Prod2, Prod3
Group2 => Prod1, Prod2, Prod4

How can I do this?

I've been looking at group.query, but I don't think this is what I want.

For example, "q=*:*&group.query=group_1_bool:true+AND+group_2_bool:true"
Results in 1 group called "group_1_bool:true AND group_2_bool:true", which 
contains prod1 and prod2.


Thanks,
Peter

Reply via email to