lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <>
Subject Re: Solr groups not matching with terms in a field
Date Fri, 16 Jan 2015 07:58:42 GMT
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"

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.


On Friday, January 16, 2015 4:43 AM, Naresh Yadav <> 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 <> 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 <>
> 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 :
> Solrj code to insert docs :
> Response Group's :
> Response Terms' :
> Please let me know if am i doing something wrong her

View raw message