Hi Naresh, I have never grouped on a tokenised field and I am not sure it makes sense to do so.
Reading back ref-guide it says this about group.field parameter "The name of the field by which to group results. The field must be single-valued, and either be indexed or a field type that has a value source and works in a function query, such as ExternalFileField. It must also be a string-based field, such as StrField or TextField" https://cwiki.apache.org/confluence/display/solr/Result+Grouping Therefore, it should be single valued. P.S. Don't get confused with TextField type, for example it could create single token when used with keyword tokenizer. Ahmet On Friday, January 16, 2015 4:43 AM, Naresh Yadav <nyadav....@gmail.com> wrote: Hi ahmet, If you observe output ngroups is 1 and returning only one group P1. But my expectation is it should return three groups P1, L1, L2 as my field is tokenized with space. Please correct me if wrong? On 1/15/15, Ahmet Arslan <iori...@yahoo.com.invalid> wrote: > > > Hi Naresh, > > Everything looks correct, what is the problem here? > > If you want to see more than one document per group, there is a parameter > for that which defaults to 1. > > Ahmet > > > > On Thursday, January 15, 2015 9:02 AM, Naresh Yadav <nyadav....@gmail.com> > wrote: > Hi all, > > I had done following configuration to test Solr grouping concept. > > solr version : 4.6.1 (tried in latest version 4.10.3 also) > Schema : http://www.imagesup.net/?di=10142124357616 > Solrj code to insert docs : http://www.imagesup.net/?di=10142124381116 > Response Group's : http://www.imagesup.net/?di=1114212438351 > Response Terms' : http://www.imagesup.net/?di=614212438580 > > Please let me know if am i doing something wrong her