0

I'm using FieldCollapsing to group the results. Example: I search for : and group by names, like:

http://localhost:<port>/solr/select/?q=*:*
                           &group=true
                           &group.limit=200
                           &group.query=Jim
                           &group.query=Jon
                           &group.query=Frank Sinatra

It looks like, solr is running (internal) an separate query for every name. (whatever) The point is, that i have to change the search parameter local in order to set an different search operator (from OR to AND). To get valid results I need an query like this:

http://localhost:<port>/solr/select/?q=*:*
                           &group=true
                           &group.limit=200
                           &group.query={!q.op=AND defType=edismax}Jim
                           &group.query={!q.op=AND defType=edismax}Jon
                           &group.query={!q.op=AND defType=edismax}Frank Sinatra

This works very well. The Problem is, that solr returns the label of the group including the locale parameter!

<lst name="grouped">
    <lst name="{!q.op=AND defType=edismax}Frank Sinatra">        <---- wrong label
        <int name="matches">785</int><result name="doclist" numFound="10" start="0">
            <doc>
            [...]

An valide result is be:

<lst name="grouped">
    <lst name="Frank Sinatra">
        <int name="matches">785</int><result name="doclist" numFound="10" start="0">
            <doc>
            [...]

Is there a way to change to label to the real term where solr is searching for?

The Bndr
  • 13,204
  • 16
  • 68
  • 107
  • I deleted my answer since in your opinion it reduced your chance to solve your problem. Let's see the results, I'm looking forward to see your problem solved, but I still don't get why you shouldn't trust a solr contributor who gave you his answer and spent his time on it. – javanna Jan 26 '12 at 10:08
  • @javanna Dear Javanna, its absolutely not the point, that I don’t trust your answers. Instead of this, everything was right. I know, you are very active on questions related to SOLR, I high regard your statements and you also gave me helpful hints and ideas in the past. That’s not the point. Have a nice weekend. :-) – The Bndr Jan 27 '12 at 10:09

0 Answers0