Hello- A way to do this is to create on faceting field that includes both the size and the color. I assume you have a different shoe product document for each model. Each model would include the color & size 'red' and '14a' fields, but you would add a field with 'red-14a'.
On Wed, Aug 4, 2010 at 7:17 AM, Mickael Magniez <mickaelmagn...@gmail.com> wrote: > > Hello, > > I'm dealing with a problem since few days : I want to index and search > shoes, each shoe can have several size and colors, at different prices. > > So, what i want is : when I search for "Converse", i want to retrieve one > "shoe per model", i-e one color and one size, but having colors and sizes in > facets. > > My first idea was to copy SQL behaviour with a "SELECT * FROM solr WHERE > text CONTAINS 'converse' GROUP BY model". > But no group by in Solr :(. I try with FieldCollapsing, but have many bugs > (NullPointerException). > > Then I try with multivalued facets : > <field name="size" type="string" indexed="true" stored="true" > multiValued="true"/> > <field name="color" type="string" indexed="true" stored="true" > multiValued="true"/> > > It's nearly working, but i have a problem : when i filtered on red shoes, in > the size facet, I also have sizes which are not available in red. I don't > find any solutions to filter multivalued facet with value of another > multivalued facet. > > So if anyone have an idea for solving this problem... > > > > Mickael. > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/No-group-by-looking-for-an-alternative-tp1022738p1022738.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Lance Norskog goks...@gmail.com