By default you get the top result from each group (if you are not sorting on a field specifically, then you should be getting the document with the highest score per group).
This can be changed with the "group.limit" parameter. See http://wiki.apache.org/solr/FieldCollapsing#Request_Parameters Tomás On Thu, Oct 25, 2012 at 5:41 PM, Billy Newman <newman...@gmail.com> wrote: > I am currently trying to use field grouping and I am not getting the > results I am expecting. > > I have the following fields > > id > type > group > animal_name > animal_description > mineral_name > mineral_description > description (copyfield from animal_description and mineral_description) > > &q=description:"Some Text"&group=true&group.field=group > > I get back results, however I do not get back all fields. For some > reason in the response I do no get back the mineral specific fields. > Should I get back a combination of all fields from each group? > > I.E. should I expect to get back all the fields from those I defined > above? > > Also if I am supposed to get back all fields what happens to fields > from each type that have different values but are stored in the same > field (Sorry for the bad example) > > id=1234 > type=animal > group=ONE > animal_name=fox > animal_description=Some Text > > > id=5678 > type=mineral > group=ONE > mineral_name=gold > mineral_description=Some Text > > So for the query above on "Some Text" I should get back 2 results but > they should be grouped into one based on the fact that they live in > group ONE. > I would expect my results to come back with all fields collapsed into one > group: > > id=????? ( not sure what comes back here 1234 or 5678) > type=????? (not sure what comes back here animal or mineral) > group=ONE > animal_name=fox > animal_description=Some Text > mineral_name=gold > mineral_description=Some Text > > however I am only getting back fields from one of the results, in this > case only the animal stuff is coming back: > id=1234 > type=animal or mineral > group=ONE > animal_name=fox > animal_description=Some Text > > > Any ideas? > > Billy >