Hi Andy,

Why do you want to group by title? It seems to contain the brand and
product number, right?

Also from what I understand from your email the field title is
analysed. Grouping on fields
that are analysed give unexpected results. Grouping is usually
performed on fields that are
of type string. You can configure new field named title_str (example)
and use a copyField that
provides the title_str with content from the title field. The groups
are then formed based on
the complete value from a field (e.g. 吸尘器(Panasonic) MC-CA391G). Obviously you
then need to group by title_str field.

If you don't want to group by title, but something else e.g brand then
you need to put this in
a new field (that doesn't analyse text) and group by that field.

Martijn

On 27 April 2012 10:53, andy <yhl...@sohu.com> wrote:
> I want to specify the group field to "title"
> which has some index examples like this
>
> 吸尘器(Panasonic) MC-CA391G
> 吸尘器(Panasonic) MC-CA491R
> 吸尘器(Panasonic) MC-CA402G
>
> and so on,
> I search like this
> q=title:吸尘器&group=true&group.field=title
>
> I analyze the searching result that I got a group value is "ca"
> the corresponding numFound is 6
>
> 吸尘器(Panasonic) MC-CA391G
> 吸尘器(Panasonic) MC-CA491R
> 吸尘器(Panasonic) MC-CA402G
> and other three item are in the same group,
> I donot want to these items be grouped together because they have different
> product number ,
>
>
> Now , I have a question , HOW TO CUSTOM THE GROUP VALUE , MAKE THE GROUP
> RESULT MORE exactly?
> pls do give me a favor!!!!!
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/how-to-custom-the-groupValue-for-the-solr-group-function-tp3943752p3943752.html
> Sent from the Solr - User mailing list archive at Nabble.com.

-- 
Met vriendelijke groet,

Martijn van Groningen

Reply via email to